@sentence vs @command (Universe)

62 views
Skip to first unread message

George Gallen

unread,
Jun 2, 2022, 10:31:05 AMJun 2
to mvd...@googlegroups.com
So these two command are not interchangable.

@SENTENCE returns the full line of the current program being executed
@COMMAND returns the full command line executed

when this makes a difference is when you run a program from a VOC
@SENTENCE will return the program command line, @COMAMND will
return the command line to run the VOC

VOC - VTEST1
PA
RUN LIB VTEST1


LIB - VTEST1
PRINT  @COMMAND
PRINT @SENTENCE


So running:

RUN LIB VTEST1
returns
RUN LIB VTEST1
RUN LIB VTEST1

BUT...

VTEST1
returns
VTEST1
RUN LIB VTEST1


just something to keep in mind...This was on Universe 11   (I seem to recall it did that also on UV10 also)

Martin Phillips

unread,
Jun 6, 2022, 4:55:00 AMJun 6
to mvd...@googlegroups.com

These two @variable names were originally defined by Prime Information and found their way into later products. Note that there is an obscure trap for the unwary if you use inline prompts.

 

The C control code references @SENTENCE and the S control code references @COMMAND.

 


Martin

 

From: mvd...@googlegroups.com <mvd...@googlegroups.com> On Behalf Of George Gallen
Sent: 02 June 2022 15:31
To: mvd...@googlegroups.com
Subject: [mvdbms] @sentence vs @command (Universe)

 

EXTERNAL EMAIL




--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
---
You received this message because you are subscribed to the Google Groups "Pick and MultiValue Databases" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvdbms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mvdbms/BL0PR13MB451642732093C92264BDCFA2FADE9%40BL0PR13MB4516.namprd13.prod.outlook.com.

================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
================================

This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.

Reply all
Reply to author
Forward
0 new messages