View previous topic :: View next topic
|
Author |
Message |
renjithravi
New User
Joined: 28 Jul 2008 Posts: 14 Location: Chennai
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
renjithravi
New User
Joined: 28 Jul 2008 Posts: 14 Location: Chennai
|
|
|
|
Hi Gerry,
Thanks it is working. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Renjith,
glad to assist.
Gerry |
|
Back to top |
|
|
|