i'm writing a rexx script on a z/OS (ADCD version) at my university. I want to write a very long string to a pds member with diskw. Sadly rexx doesn't automaticly break the line so only about half the string is written to the member. My string is a command that i am concatenating, executing and that i want to write to a log.
/*REXX*/
"ALLOCATE DATASET('"FILEPATH"') FILE(FILE) SHR REUSE"
command = "adduser" username
command = command || " TSO(ACCTNUM(ACCT) PROC(DBSPROC)",
"MAXSIZE(6072) SIZE(5000) MSGCLASS(H) UNIT(SYSALLDA))"
LOG.1 = command
LOG.2 = "Other Stuff"
"EXECIO" 2 "DISKW FILE (STEM LOG."
"EXECIO 0 DISKW FILE (FINIS"
"FREE FILE(FILE)"
The Log created now only contains my command to a certain character and the rest of my command is not written to the member. like this:
adduser john TSO(ACCTNUM(ACCT) PROC(DBSPROC) MAXSIZE(6072) SIZE(5
Do you have any idea how to make rexx break the line and write my whole command?