IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem in converting Julian date to Gregorian date...


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2481
Location: @my desk

PostPosted: Wed Nov 19, 2008 7:05 pm
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
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: 2481
Location: @my desk

PostPosted: Wed Nov 19, 2008 7:27 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top