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

Creating a member list of a PDS


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nirav721

New User


Joined: 11 Feb 2008
Posts: 53
Location: NJ

PostPosted: Tue Jan 27, 2009 6:31 pm
Reply with quote

Is there anyway to create a member list dataset using file-aid?

For example -- If I had a PDS with 5 members, I need to create a dataset with just the names of these 5 members, nothing else.
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Wed Jan 28, 2009 3:25 am
Reply with quote

This should work for you. The DD01O output DD statement from the 2nd FILEAID step will contain the member names starting in position 1 of an 80 byte record.

Code:

//FILEAID1 EXEC PGM=FILEAID,PARM=TSO                           
//SYSPRINT DD  SYSOUT=*                                         
//SYSLIST  DD  DSN=&&MEMBERX,UNIT=SYSDA,DISP=(NEW,PASS),       
//             SPACE=(CYL,(50,20),RLSE)                         
//DD01     DD DISP=SHR,DSN=HLQ.PDS.LIBRARY                     
//DD01O    DD DUMMY                                             
//SYSIN    DD  *                                               
$$DD01 LISTALL OUT=0                                           
/*                                                             
//DELETE  EXEC PGM=IDCAMS                                       
//SYSPRINT DD SYSOUT=*                                         
//SYSIN    DD *                                                 
 DELETE HLQ.MEMBER.LIST                                         
 SET MAXCC=0                                                   
/*                                                             
//FILEAID2 EXEC PGM=FILEAID                                     
//SYSPRINT DD  SYSOUT=*                                         
//SYSLIST  DD  SYSOUT=*                                         
//DD01     DD  DISP=(OLD,DELETE),DSN=&&MEMBERX                 
//DD01O    DD  DSN=HLQ.MEMBER.LIST,UNIT=SYSDA,DISP=(NEW,CATLG),
//             RECFM=FB,LRECL=80,BLKSIZE=0,                       
//             SPACE=(TRK,(5,2),RLSE)                             
//SYSIN    DD  *                                                 
$$DD01 COPY PADCHAR=C' ',                                         
            IF=(30,EQ,C'***MEMBER'),                             
            MOVE=(1,8,41)                                         
/*                                                               
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top