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
 

 

Appending the current date during run time.

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

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Sat Apr 05, 2008 11:24 am    Post subject: Appending the current date during run time.
Reply with quote

We have one file , in which we have to append the current date during run time.

we can do this using the DATE1 fuction in sort


Code:

  SORT FIELDS=COPY
  OUTREC FIELDS=(DATE1,1,10)


but the date appended is in yyyymmdd format.

Any idea how do can we get it in ddmmccyy format?

regards,
Jaspal
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Apr 05, 2008 4:32 pm    Post subject:
Reply with quote

Hello,

See if this previous topic helps. . .

http://ibmmainframes.com/viewtopic.php?t=7034
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Sun Apr 06, 2008 5:08 am    Post subject:
Reply with quote

Jaspal,

Assuming that you want the ddmmyyyy date followed by bytes 1-10 of the input record, you would use these DFSORT statements:

Code:

   SORT FIELDS=COPY                     
   OUTREC BUILD=(1:DATENS=(DM4),1,10)   


Note: The syntax you showed was incorrect. I corrected it.
Back to top
View user's profile Send private message
patypaz

New User


Joined: 21 Jun 2007
Posts: 2
Location: Brazil

PostPosted: Tue May 13, 2008 6:57 pm    Post subject:
Reply with quote

Thank you! icon_lol.gif

Great work!!!!
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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