Appending data to a PDS using REXX
Posted: Sat Feb 25, 2012 12:24 am
I'm new to REXX and I've done a lot of research but I cannot seem to find a solution to this. I have read that I cannot use the MOD command on a PDS member, yet I do have some code (posted below) that works using that without giving me any errors. It will not append data.
"ALLOC MOD SRH FILE(output) DATASET('"output"') REUSE"
Just about anything else I try will give me errors. Here is more code:
...
member = STRIP(job.i)
output = '***.***.***' || '(' || member || ')'
"ALLOC MOD SRH FILE(output) DATASET('"output"') REUSE"
out.1 = date.i job.i start.i
"EXECIO 1 DISKW output (STEM out. FINIS"
...
Any idea's? I really appreciate the help! As I said, the way I have it above actually works other than it will not append.
Thank you!
"ALLOC MOD SRH FILE(output) DATASET('"output"') REUSE"
Just about anything else I try will give me errors. Here is more code:
...
member = STRIP(job.i)
output = '***.***.***' || '(' || member || ')'
"ALLOC MOD SRH FILE(output) DATASET('"output"') REUSE"
out.1 = date.i job.i start.i
"EXECIO 1 DISKW output (STEM out. FINIS"
...
Any idea's? I really appreciate the help! As I said, the way I have it above actually works other than it will not append.
Thank you!