Page 1 of 1

I need a JCL to delete the last 6 lines of all the members i

Posted: Tue Feb 21, 2006 2:05 pm
by osurendhra
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

IEBCOPY along with REXX suits your need

Posted: Mon Mar 29, 2010 9:28 pm
by hemanthg
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.

Posted: Tue Mar 30, 2010 5:31 am
by MrSpock
I'm at a loss for a solution that doesn't involve going through each member and editing it, one member at a time. A program that edits each member with an ISPF Edit Macro would seem to be the best fit here.

Posted: Tue Mar 30, 2010 1:39 pm
by Anuj Dhawan
This topic is just 4 years old...:)

Topic deleted by Admin

Posted: Mon Feb 01, 2016 10:13 pm
by academyindia4
<< Content deleted By Admin >>