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!
Appending data to a PDS using REXX
Moderators: Veera, Moderator Group
I don't really know what you expect for an answer. Yes, you cannot append data to a member of a PDS, at least outside of editing it. That's always been the case. I'm not sure why you'd want to.
The only way has always been to read and store all of the contents, add the new information to the end, and then re-write the member from the top down. That's essentially what an editor is doing, albeit more efficiently.
The only way has always been to read and store all of the contents, add the new information to the end, and then re-write the member from the top down. That's essentially what an editor is doing, albeit more efficiently.
-
- Member
- Posts: 2
- Joined: Sat Feb 25, 2012 12:16 am
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
spidiracer,
you are now wasting our time,
MrSpock has provided you with the answer.
i suggest you start reading the manuals.
this topic locked to prevent any further silly comments by you,
you are now wasting our time,
MrSpock has provided you with the answer.
i suggest you start reading the manuals.
this topic locked to prevent any further silly comments by you,
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page