Page 1 of 3

JCL to add or remove a line in PDS member

PostPosted: Wed Dec 14, 2016 7:19 pm
by dhana venkatesh
Currently we are editing the PDS member to add or remove the account number per advice from business. This we are doing it in 3.4 by editing the member wherever required to add or remove lines. Can any one guide me how to do this using a JCL ?

Regards
Dhana

Re: JCL to add or remove a line in PDS member

PostPosted: Wed Dec 14, 2016 7:37 pm
by Robert Sample
Terminology is critical in IT, where similar terms may mean very different things. You cannot do this "in a JCL" -- you MUST use a program (which can be executed through JCL) to do it. You could add one by using IEBGENER with a concatenated input going to the a single output data set. You could delete one by using IDCAMS REPRO with SKIP, as long as you know which record is to be deleted. Or you could write a program in the language of your choice to process adds and deletes against the data set.

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 12:43 pm
by dhana venkatesh
Thanks Robert. I am a beginner in JCL. You have any example JCL for adding and removing a line using IEBGENER and IDCAMS?

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 3:40 pm
by prino
And you don't have any more experienced colleagues mentoring you?

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 3:54 pm
by dhana venkatesh
No, so only i posted here for a help.

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 5:35 pm
by Robert Sample
No I do not have any sample JCL, because if I need to add or remove a line from a PDS member I use ISPF's EDIT function to do so. If a production process needs such editing, the process will be reworked to remove the edit requirement -- for example, by having the users add / remove the data in a VSAM KSDS that is then copied into the PDS member (and why is this not a PDSE?) whenever the batch job executes. Inadequate system design is one of the most popular issues on this forum -- a lot of the "how to" questions are actually showing the inadequate system design.

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 8:07 pm
by NicC
! Deleted. As Enrico pointed out - wrong topic :(

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 9:05 pm
by enrico-sorichetti
Nic,
looks like You replied to the wrong topic ;)
no FTP issues here

Re: JCL to add or remove a line in PDS member

PostPosted: Thu Dec 15, 2016 9:20 pm
by dhana venkatesh
Thanks Robert. Just surfing in google, how is OMIT command used? Will it satisfy my requirement ?

Re: JCL to add or remove a line in PDS member

PostPosted: Mon Dec 19, 2016 6:42 pm
by dhana venkatesh
Robert, Can i know the use of OMIT command in JCL ? Will it satisfy my requirement ?