I need a JCL to delete the last 6 lines of all the members in a PDS.
The PDS is having almost 900 members and we need to delete the last 6 lines from all the members.
Take example PDS Name: TXSB.CAD.JCLLIB
I need a JCL to delete the last 6 lines of all the members i
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 2
- Joined: Wed Feb 08, 2006 8:42 pm
- Location: Hyderabad
I need a JCL to delete the last 6 lines of all the members i
If you want to interact directly mail me osurendhra@gmail.com
IEBCOPY along with REXX suits your need
Hi,
you can use IEBCOPY to place the contents of PDS into a flat file.
Once done, you can use any of the following.
a. Write a COBOL program to read the flat file and remove the unwanted lines.
b. Write a REXX routine to remove the unwanted lines.
After the above you can convert the flat file into PDS using IEBCOPY
Let me know if you need more details.
you can use IEBCOPY to place the contents of PDS into a flat file.
Once done, you can use any of the following.
a. Write a COBOL program to read the flat file and remove the unwanted lines.
b. Write a REXX routine to remove the unwanted lines.
After the above you can convert the flat file into PDS using IEBCOPY
Let me know if you need more details.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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