IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Eliminating the job cards from all the members in a pds.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bobvilch

New User


Joined: 11 Oct 2006
Posts: 3

PostPosted: Wed Oct 11, 2006 11:07 pm
Reply with quote

I need to modify all the members in a pds. I need to remove all the job cards and certain comment lines. I was able to execute it on 1 pds, but not all the members at 1 time. From what I have researched, it looks as if I can only do 1 member at a time. Please tell this is not so!
This is what I execute (not all member begin with the same nbr. so I set them to 100.
//SYSIN DD *
./ CHANGE NAME=GDGPCP
./ NUMBER NEW1=100,INCR=100
./ ENDUP
/*
//
After the change I execute the DELETE
./ DELETE SEQ1=100,SEQ2=100
I don't have to use ICETOOL, anything just to get it done. Once I get past this hump, this process will be used in many departments.
Any help would be greatly appreciated.
Bob Vilches
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Oct 12, 2006 6:39 am
Reply with quote

Bob, I'm sorry, but I don't recognize that sytax you're using that starts with ./ .

May I ask what utility you're using?
Back to top
View user's profile Send private message
bobvilch

New User


Joined: 11 Oct 2006
Posts: 3

PostPosted: Thu Oct 12, 2006 8:21 pm
Reply with quote

I am using PGM=IEBUPDTE. I found this syntax './' in the examples.
./ CHANGE NAME=member name , seems to take one member name. I would like to know if there is a way to perform this on multiple members with out having to list each and everyone. I tried ICETOOL with no success. I saw some REXX examples but I am not a REXXpert and would need some pointers (ie how and where to concatenate my pds with the REXX commands) to be able to execute the REXX member.

Thanks for any assistance I can get in this matter.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Oct 12, 2006 11:56 pm
Reply with quote

Here's two processes that I might do for a quick and dirty solution without a lot of programming:

1. "Flatten" the PDS into a sequential dataset with the IEBPTPCH utility.

2. Use DFSORT to delete the records that match the criteria as given, reformat the existing records as needed, and to build the IEBUPDTE ./ records for each member.

3. Use IEBUPDTE to build the changed members to the PDS.

<< OR >>

1. Build a member list.

2. Dynamically build and submit a job using DFSORT and the first member in the list to delete the records that match the criteria as given.

3. Delete the processed member from the list.

4. Go back to step 2 until there are no more members to process.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts REXX editmacro to compare two members... CLIST & REXX 7
No new posts Easy way to delete selected members f... IBM Tools 12
No new posts Possible to have two sort cards on on... DFSORT/ICETOOL 14
Search our Forums:

Back to Top