JCL to add or remove a line in PDS member



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

JCL to add or remove a line in PDS member

Postby dhana venkatesh » Wed Dec 14, 2016 7:19 pm

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
dhana venkatesh
 
Posts: 31
Joined: Thu Mar 06, 2014 6:53 pm
Has thanked: 3 times
Been thanked: 0 time

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

 

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

Postby Robert Sample » Wed Dec 14, 2016 7:37 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

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

Postby dhana venkatesh » Thu Dec 15, 2016 12:43 pm

Thanks Robert. I am a beginner in JCL. You have any example JCL for adding and removing a line using IEBGENER and IDCAMS?
dhana venkatesh
 
Posts: 31
Joined: Thu Mar 06, 2014 6:53 pm
Has thanked: 3 times
Been thanked: 0 time

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

Postby prino » Thu Dec 15, 2016 3:40 pm

And you don't have any more experienced colleagues mentoring you?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

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

Postby dhana venkatesh » Thu Dec 15, 2016 3:54 pm

No, so only i posted here for a help.
dhana venkatesh
 
Posts: 31
Joined: Thu Mar 06, 2014 6:53 pm
Has thanked: 3 times
Been thanked: 0 time

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

Postby Robert Sample » Thu Dec 15, 2016 5:35 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

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

Postby NicC » Thu Dec 15, 2016 8:07 pm

! Deleted. As Enrico pointed out - wrong topic :(
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby enrico-sorichetti » Thu Dec 15, 2016 9:05 pm

Nic,
looks like You replied to the wrong topic ;)
no FTP issues here
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

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

Postby dhana venkatesh » Thu Dec 15, 2016 9:20 pm

Thanks Robert. Just surfing in google, how is OMIT command used? Will it satisfy my requirement ?
dhana venkatesh
 
Posts: 31
Joined: Thu Mar 06, 2014 6:53 pm
Has thanked: 3 times
Been thanked: 0 time

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

Postby dhana venkatesh » Mon Dec 19, 2016 6:42 pm

Robert, Can i know the use of OMIT command in JCL ? Will it satisfy my requirement ?
dhana venkatesh
 
Posts: 31
Joined: Thu Mar 06, 2014 6:53 pm
Has thanked: 3 times
Been thanked: 0 time

Next

Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post