Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Batch utility to write PDS member list to sequential file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Wallaby Bob

New User


Joined: 03 Feb 2004
Posts: 2
Location: Sydney

PostPosted: Tue Feb 03, 2004 9:34 am    Post subject: Batch utility to write PDS member list to sequential file
Reply with quote

Does anybody know of or have any JCL for a utility that will write a PDS member list to a sequential file?

I did this about 8 years ago but can't remember the tool I used to generate the PDS member list.

Examples of JCL would be greatly apreciated.

icon_question.gif
Back to top
View user's profile Send private message

bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Tue Feb 03, 2004 5:49 pm    Post subject:
Reply with quote

you can use tso in batch with litds or listdsi command
Back to top
View user's profile Send private message
Wallaby Bob

New User


Joined: 03 Feb 2004
Posts: 2
Location: Sydney

PostPosted: Wed Feb 04, 2004 3:39 am    Post subject:
Reply with quote

I recieved the following suggestion;

Wallaby Bob,

The following JCL will give you the desired results.

Code:

//STEP10 EXEC PGM=IKJEFT01
//SYSTSPRT DD DSN=YOUR PDS MEM LISTING
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSTSIN DD *
LISTDS 'your pds name' MEMBERS
/*



Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Wed Feb 04, 2004 5:24 pm    Post subject:
Reply with quote

Hello Wallaby Bob,

Please find the below mentioned rexx routine to get the desired results


Code:

SAY 'PLEASE ENTER YOUR PDS NAME YOU WANT TO LIST : '       
SAY 'PLEASE GIVE THE PDS NAME IN QUOTES'                   
PARSE PULL DSN                                             
                                                           
ID = USERID()                                               
NAME = '.PDS.LIST'                                         
OUTNAME = ID || NAME                                       
                                                           
"ALLOC F(OUTPUT) DA('"OUTNAME"') NEW UNIT(SYSDA) DSORG(PS)",
"SPACE(2 1) Tracks LRECL(80) RECFM(F,B)"                   
                                                           
x = OUTTRAP(ListMem.,"*")                                   
"listds " DSN " mem "                                       
x = OUTTRAP("off")                                         
                                                           
MemDis = 'N'                                               
Mcnt = 0                                                   
                                                           
DO Cnt = 7 to ListMem.0                                     
   MCnt = MCnt + 1                                         
   Mem = strip(ListMem.Cnt)                                 
   LOC.Mcnt = Mem                                           
   SAY 'mem ' mem                                           
END                                                         

"EXECIO * DISKW OUTPUT (STEM LOC. FINIS"                   
"FREE FI(OUTPUT)"                                           
                                                           
SAY 'PLEASE CHECK THE PDS CONTENTS IN : ' OUTNAME           




Hope this helps

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Thu Feb 05, 2004 10:19 pm    Post subject:
Reply with quote

IKJEFT01 is TSO in batch program.
so basically use this program to issue the cmd I showed you.

sorry for forgetting the jcl deck.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us