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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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