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
 

 

Problem in converting Julian date to Gregorian date...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Nov 19, 2008 7:00 pm    Post subject: Problem in converting Julian date to Gregorian date...
Reply with quote

Hi,

I tried to convert Julian date which is in the format X'yyddds' to MM/DD/CCYY using below code.

Code:

//STEP010  EXEC PGM=SORT                         
//SYSPRINT DD SYSOUT=*                           
//SORTIN   DD DSN=PGL.DATBASE.SEP08,DISP=SHR   
//SORTOUT  DD DSN=DE2.PGL.DATBASE.SEP08,       
//            DISP=(NEW,CATLG,DELETE),           
//            UNIT=TSOPK,                       
//            SPACE=(CYL,(15,15),RLSE),         
//            DCB=(RECFM=FB,LRECL=3208)         
//SYSOUT   DD SYSOUT=*                           
//SYSUDUMP DD SYSOUT=*                           
//DFSMSG   DD SYSOUT=*                           
//SYSIN    DD *                                 
  OPTION COPY                                   
* CREATE DFSORT SYMBOL AS:                       
* TARG FOR YEAR& MONTH                           
  OUTREC FIELDS=(C'BEGIN,',24,3,Y2U,DT=(MD4/))   
/*                                               
//*                                             


I/p:

Code:

 DB DT
MTH END
P 3   
24-----
*******
X'274F+
240   
7F8   


O/p:

Code:

BEGIN,99/99/9999   


Here i am not getting correct o/p. I am getting only 99/99/9999 for all cases. I dont know where is the problem. Please clarify me

Thanks in advance
R KARTHIK
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Wed Nov 19, 2008 7:05 pm    Post subject:
Reply with quote

Karthik,

You're trying a DFSORT job on Syncsort system. That may not work always. Is this a part of your requirement in this topic?
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Nov 19, 2008 7:24 pm    Post subject: Reply to: Problem in converting Julian date to Gregorian dat
Reply with quote

Hi,

I wrote the posted JCL from SYNCSORT manual only. I think u may have confusion since i used DFSMSG dd statement.

Ya this topic is related to that requirement.

Thanks
R KARTHIK
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Wed Nov 19, 2008 7:27 pm    Post subject:
Reply with quote

Quote:
I wrote the posted JCL from SYNCSORT manual only

I m sure you did not find this from a Syncsort Manual.
Code:
* CREATE DFSORT SYMBOL AS:
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Nov 19, 2008 7:41 pm    Post subject: Reply to: Problem in converting Julian date to Gregorian dat
Reply with quote

Ya...I created this JCL from another one. In that i untouched that comment line.

Regards
R KARTHIK
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am


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