MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
Bravo Beginner Joined: 05 Dec 2005 Posts: 26 Topics: 12
Posted: Fri Dec 23, 2005 7:00 pm Post subject: How to find GDG base.
Hi,
I need to extract only the GDG base with HLQ as userid.* and put all GDG base into a new file.
It has to be done in REXX or IDCAMS.
Any help!!!
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Fri Dec 23, 2005 8:01 pm Post subject:
Bravo ,
Try this
Code:
//STEP0100 EXEC PGM=IKJEFT01
//*
//SYSTSPRT DD DSN=&L,
// DISP=(,PASS),
// SPACE=(CYL,(25,10),RLSE),
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=0)
//SYSTSIN DD *
LISTCAT LEVEL('userid') ALL
//*
//STEP0200 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=&L,DISP=(OLD,DELETE)
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(1,8,CH,EQ,C'GDG BASE')
OUTREC FIELDS=(17,36)
/*
Check this link for more information
http://www.mvsforums.com/helpboards/viewtopic.php?t=711&highlight=gdg+limit
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu
Back to top
Bravo Beginner Joined: 05 Dec 2005 Posts: 26 Topics: 12
Posted: Sat Dec 24, 2005 4:17 pm Post subject:
Works perfectly!!!Thanks kolusu
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum