MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to find GDG base.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Bravo
Beginner


Joined: 05 Dec 2005
Posts: 26
Topics: 12

PostPosted: Fri Dec 23, 2005 7:00 pm    Post subject: How to find GDG base. Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Dec 23, 2005 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Bravo
Beginner


Joined: 05 Dec 2005
Posts: 26
Topics: 12

PostPosted: Sat Dec 24, 2005 4:17 pm    Post subject: Reply with quote

Works perfectly!!!Thanks kolusu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group