Did you know – RList statements


You can capture the results of a Rlist statement into a variable.

Subroutine RList_Tip(Void)
Declare Function Exec_Rlist
cmd = “LIST BOOKS BY @ID F1 F2 F3”
type = “OI”
dFlag = 0 ; * debug flag
rslt = Exec_Rlist(cmd,”EXECUTE”,type,dFlag)
Return

RSLT will be a field-mark-delimited list of the output. Note that there may be some other spurious characters that you might want to strip out.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s