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

command to submit all the members in a PDS???


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Govindaswamy

New User


Joined: 26 Dec 2007
Posts: 5
Location: india

PostPosted: Thu Jan 31, 2008 2:30 pm
Reply with quote

Hi,
A PDS has nearly 2000 members , I need to submit all the jobs in that PDS. Is there any command to do it? If so how?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 31, 2008 2:56 pm
Reply with quote

Although it sounds to me like a bad practice or bad planning, you can automate it pretty easily using REXX. Simply loop through all members in the PDS (either with LMMLIST or LISTDS) and issue SUBMIT for each one of them.

O.
Back to top
View user's profile Send private message
Govindaswamy

New User


Joined: 26 Dec 2007
Posts: 5
Location: india

PostPosted: Thu Jan 31, 2008 4:45 pm
Reply with quote

Hi ofer71,
Im running these jobs to do a JCL ERROR check ie TYPRUN=SCAN in all these jobs.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 31, 2008 4:55 pm
Reply with quote

Do you have some JCL check utility at your shop? These tools should have a process to test a complete PDS (I know JCLCheck have...)

O.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jan 31, 2008 6:56 pm
Reply with quote

Govindaswamy wrote:
I need to submit all the jobs in that PDS.
Experment or a business requirement it is?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jan 31, 2008 7:03 pm
Reply with quote

It would take about 3 minutes to create a dataset with a list of members from ISPF Option 3.1, edit it and create SUB commands for all the members.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Feb 01, 2008 10:20 am
Reply with quote

Hi,
if you have FILEAID you can run the following:-

Code:
//FILEAID  EXEC PGM=FILEAID                                             
//SYSPRINT DD SYSOUT=*                                                 
//DD01     DD DSN=INPUT.IBM,  PDS-NAME                                 
//            DISP=SHR                                                 
//DD01O    DD SYSOUT=(A,INTRDR)                                         
//SYSIN    DD *                                                         
$$DD01 COPY MEMBERS=ALL                                                 


Gerry
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Feb 01, 2008 6:30 pm
Reply with quote

If you copy these into one file, then one SUBMIT should do, as it will submit the entire job stream. You don't need a separate SUBMIT for each job.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 01, 2008 6:42 pm
Reply with quote

go to option 3.4
list Your pds
put an m ( member list ) in front of it

in the command line enter "s * sub"
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top