Keep the following guidelines in mind when you write procedures with logic:
"RUN QUERY MYQUERY (&&DEPT=38, ", "&&DIV='EASTERN'"Because this statement is a QMF command that is split into two lines, both lines are enclosed in quotes. The continuation character is placed at the end of the first line, outside the quotes.
You cannot use a continuation character in a comment line, command keyword, or substitution variable name. You can use a continuation character in a substitution variable value, if you enclose the value in single quotes.
You can type comments between continuation lines.
Long names support: Follow the REXX syntax rules for continuation and concantenation. Here is an example of a long object name:
PROC LONGOWN>.LONGCOLUNNAME567> LINE 1 objName = 'LOC4567890123456.OWNER678901234567890123456789012345678901234567890', || '1234567890123456789012345678901234567890123456789012345678901234567890', || '12345678901234567890123456789012345678ONAME678901234567890123456789', || '0123456789012345678901234567890123456789012345678901234567890123456789', || '0123456789012345678901234567890123456789012345678' 'DISPLAY TABLE' ObjName *** END *** 1=Help 2=Run 3=End 4=Print 5=Chart 6=Query 7=Backward 8=Forward 9=Form 10=Insert 11=Delete 12=Report COMMAND ===>
The proc object name at the top of the screen might be truncated if the authorization ID is longer than 8 characters or the object name is longer than 18 characters. Enter the SHOW NAME command from the command line to display a pop-up screen that contains the complete object name. See the SHOW NAME command for more details.