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 

Version Number of a GDG
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Dec 23, 2002 5:19 pm    Post subject: Reply with quote

GaneshB,

Change the control cards to the following.Hopefully this will run.

Code:

  INCLUDE COND=(4,7,CH,EQ,C'NONVSAM')           
  INREC FIELDS=(1,80,SEQNUM,8,ZD)               
  SORT FIELDS=(81,8,ZD,D)                       
  OUTREC FIELDS=(17,44,80:X,SEQNUM,4,ZD)       
  OUTFIL INCLUDE=(81,4,ZD,EQ,1),OUTREC=(1,80)   
/*


Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
GaneshB
Beginner


Joined: 03 Dec 2002
Posts: 17
Topics: 5
Location: Columbus, GA

PostPosted: Mon Dec 23, 2002 6:44 pm    Post subject: Reply with quote

Hi Kolusu,

Thanks. It worked as I expected. Is there any command in Syncsort which would copy only the last record to the output file.
_________________
Regards,
Ganesh.B
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Dec 23, 2002 8:23 pm    Post subject: Reply with quote

GaneshB,

The following JCl will give you the desired results.

Code:

//STEP01   EXEC PGM=SORT
//*                       
//SYSOUT   DD SYSOUT=*   
//SORTIN   DD DSN=YOUR INPUT DATASET,
//            DISP=SHR     
//SORTOUT  DD DSN=YOUR OUTPUT DATASET,       
//            DISP=(NEW,CATLG,DELETE),                             
//            UNIT=SYSDA,                                               
//            SPACE=(TRK,(1,1),RLSE)                               
//SYSIN    DD *                             
  INREC FIELDS=(1,80,SEQNUM,8,ZD)             
  SORT FIELDS=(81,8,ZD,D)                     
  OUTREC FIELDS=(1,10,80:X,SEQNUM,8,ZD)       
  OUTFIL INCLUDE=(81,8,ZD,EQ,1),OUTREC=(1,80)
/*                                           


If you have File-aid at your shop then you can use the following JCL.

Code:

//STEP01   EXEC PGM=FILEAID
//*                                       
//SYSPRINT DD SYSOUT=*                                             
//DD01     DD DSN=YOUR INPUT DATASET,
//            DISP=SHR                         
//DD01O    DD DSN=YOUR OUTPUT DATASET,       
//            DISP=(NEW,CATLG,DELETE),                             
//            UNIT=SYSDA,                                               
//            SPACE=(TRK,(1,1),RLSE),                               
//            DCB=(RECFM=FB,LRECL=ZZZ,BLKSIZE=0)                   
//SYSIN    DD  *                                                   
$$DD01 COPYBACK OUT=1                                               
/*   


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
GaneshB
Beginner


Joined: 03 Dec 2002
Posts: 17
Topics: 5
Location: Columbus, GA

PostPosted: Thu Dec 26, 2002 10:31 am    Post subject: Reply with quote

Hi Kolusu,

Thanks! The solution you have given in File-aid is what I was looking for. I wanted to know the command which will do this in Sync sort. I can use the File-aid solution. Thanks a lot.
_________________
Regards,
Ganesh.B
Back to top
View user's profile Send private message Send e-mail
sudoku
Beginner


Joined: 14 Aug 2006
Posts: 10
Topics: 4

PostPosted: Tue Sep 26, 2006 8:57 pm    Post subject: Reply with quote

Hi,

Could you guys suggest how to get the creation "Time" and "Date" for the GDG generation.


Thanks,
Sudoku
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: Wed Sep 27, 2006 7:27 am    Post subject: Reply with quote

Quote:

Could you guys suggest how to get the creation "Time" and "Date" for the GDG generation.


Create Date is easy to find. Create time is not that easy, you need to scan the SMF records. Both these questions are answered many times. Please search before posting. check this link which explains about extracting the gdg version create dates

http://www.mvsforums.com/helpboards/viewtopic.php?t=2104&highlight=create+gdg

Check this link which talks about creation time

http://www.mvsforums.com/helpboards/viewtopic.php?p=25025#25025

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
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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