Is it possible in OPS/REXX to add a carriage return (new line) in long strings?
OPS/MVS
Suggested including the EBCDIC NL (new line) character (x'15') after each line. Sample code:
nl = x2c('15')
line = 'first line' || nl
line = line || 'second line' || nl
line = line || 'third line ' || nl
cmd = 'echo "'line'" >> /u/users/userid/test.txt '
address USS
"USSCMD COMMAND('"cmd"')"
Resulting file:
BROWSE /u/users/userid/test.txt
********************************* Top of Data **
first line
second line
third line
******************************** Bottom of Data