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
 

 

Julian Date format as YYYDDD

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

New User


Joined: 14 Aug 2006
Posts: 45

PostPosted: Mon Sep 17, 2007 9:15 pm    Post subject: Julian Date format as YYYDDD
Reply with quote

I looked before I posted and tried several things, but I want to know if this can be done in one single step...
Code:

  OPTION COPY,STOPAFT=1                                   
  OUTREC BUILD=(C'MYDATE,''',DATE3,C'''',80:X)           


the output is
Code:
MYDATE,'2007260'


I do not want the first number as I want the output to be

Code:
MYDATE,'007260'


Is there a format for that?

I know I can massage the data in a further step, but wondering if I can do that in the same step with some format?
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: Mon Sep 17, 2007 9:50 pm    Post subject:
Reply with quote

You can do it in one pass with these DFSORT statements:

Code:

  OPTION COPY,STOPAFT=1                   
  INREC BUILD=(C'MYDATE,''',DATE3,C'''')   
  OUTREC BUILD=(1,8,10,7,80:X)             


or these DFSORT statements:

Code:

  OPTION COPY,STOPAFT=1                   
  INREC IFOUTLEN=80,                     
   IFTHEN=(WHEN=INIT,                     
     BUILD=(C'MYDATE,''',DATE3,C'''')),   
   IFTHEN=(WHEN=INIT,                     
     BUILD=(1,8,10,7))                   
Back to top
View user's profile Send private message
yianis

New User


Joined: 14 Aug 2006
Posts: 45

PostPosted: Mon Sep 17, 2007 10:28 pm    Post subject: Reply to: Julian Date format as YYYDDD
Reply with quote

Hi Frank,

I should have thought of that myself...I feel silly!

Thanks as always !!!!
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 How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


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