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

Date and time in output file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
renjithravi

New User


Joined: 28 Jul 2008
Posts: 14
Location: Chennai

PostPosted: Wed Mar 18, 2009 1:46 pm
Reply with quote

Hi,

I need to insert the current date and time in the format YYYYMMDDHHMMSS - 14 length into an output file of VB length=18.
Is it possible to create using SORT? Could you please help me in this regard

Thanks and regards
Renjith
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Mar 18, 2009 3:10 pm
Reply with quote

Hi,

try this
Code:
//S1       EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                                 
//SORTIN   DD *                                       
DUMMY                                                 
/*                                                     
//SORTOUT  DD DSN=...  output file (VB/18)             
//SYSIN    DD    *                                     
  OPTION COPY                                         
  INREC BUILD=(DATE1,TIME1)                           
  OUTFIL FTOV                                         
/*                                                     



Gerry
Back to top
View user's profile Send private message
renjithravi

New User


Joined: 28 Jul 2008
Posts: 14
Location: Chennai

PostPosted: Wed Mar 18, 2009 4:04 pm
Reply with quote

Hi Gerry,

Thanks it is working.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Mar 18, 2009 4:06 pm
Reply with quote

Hi Renjith,

glad to assist.


Gerry
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top