Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Creation date of the output file in the name of the file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Mane Sagar

New User


Joined: 12 Jul 2005
Posts: 41
Location: mumbai

PostPosted: Tue Jan 03, 2006 11:37 am    Post subject: Creation date of the output file in the name of the file.
Reply with quote

Hello all,
Can anyone give me a sample JCl in which I can attach the time the output file was created in the output file name in hrs and minutes.

Eg. amcis.file.output.time
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Tue Jan 03, 2006 3:21 pm    Post subject: Re: Creation date of the output file in the name of the file
Reply with quote

Hi,

Please find teh JCL whci create teh dates and time stamp.

Code:
//CMPRTST1 JOB (ACCT#),'SORT  ',NOTIFY=&SYSUID,CLASS=T,MSGCLASS=X   
//*   ADD DATE AND TIME STAMP TO DATASET.                           
//STEP0100 EXEC PGM=EZACFSM1                                       
//SYSOUT    DD SYSOUT=(*,INTRDR)                                   
//SYSIN     DD DATA,DLM=@@                                         
//ABAB77V2 JOB (ACCT#),                                             
//             'SORT ',CLASS=T,MSGCLASS=X,NOTIFY=&SYSUID           
//STEPK1   EXEC PGM=IEBGENER                                       
//SYSPRINT DD SYSOUT=*                                             
//SYSOUT   DD *                                                     
//SYSUT1   DD DSN=Input file ,DISP=SHR                   
//SYSUT2   DD DSN=Output.FILE.D&LYYMMDD..T&LHHMMSS,       
//            UNIT=TEMP,DISP=(NEW,CATLG,DELETE),                   
//            SPACE=(TRK,(2,2),RLSE),                               
//            DCB=(LRECL=80,RECFM=FB)                               
//SYSIN   DD  DUMMY                                                 
@@
//


Hope this helps
Regards
Rupesh
Back to top
View user's profile Send private message
Mane Sagar

New User


Joined: 12 Jul 2005
Posts: 41
Location: mumbai

PostPosted: Wed Jan 04, 2006 11:05 am    Post subject: Thanks!!
Reply with quote

Hi Rupesh,

Thanks a lot for ur help.
Back to top
View user's profile Send private message
mrar_160

New User


Joined: 14 Sep 2005
Posts: 48

PostPosted: Tue Feb 14, 2006 7:19 am    Post subject:
Reply with quote

HI Rupesh.Kothari

How if i get the date from the dataset and use it for name my dataset?


Code:

//STEP0001 EXEC PGM=GETDATE                                         
//STEPLIB  DD   DISP=SHR,DSN=&SYSUID..LOAD                         
//*SYSOUT   DD SYSOUT=*                                             
//SYSOUT   DD DSN=&SYSUID..DATE,DISP=(OLD,CATLG,DELETE),           
//          SPACE=(TRK,(2,2)),                                     
//          DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)     
//SYSUT2   DD DSN=[b][i]<What the thing need i put here?>[/i][/b] ,       
//            UNIT=TEMP,DISP=(NEW,CATLG,DELETE),                   
//            SPACE=(TRK,(2,2),RLSE),                               
//            DCB=(LRECL=80,RECFM=FB)                                 
//* 
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us