Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Convert julian date to gregorian.

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

New User


Joined: 20 Jul 2010
Posts: 38
Location: Brazil

PostPosted: Fri Aug 27, 2010 11:55 pm    Post subject: Convert julian date to gregorian.
Reply with quote

Why this does not works??? I already look some examples just like this, and it isn't working, can someone tell me why???


Code:
//*-------------------------------------------------------------------*
//SORT0001    EXEC  PGM=SORT                                           
//SYSOUT      DD    SYSOUT=*                                           
//SORTIN      DD    *                                                   
2010237                                                                 
2010236                                                                 
/*                                                                     
//SORTOUT     DD    SYSOUT=*                                           
//SYSIN       DD    *                                                   
 SORT FIELDS=COPY                                                       
 INREC IFTHEN=(WHEN=INIT,                                               
                  BUILD=(01,07,Y4T,TOGREG=Y4T(/)))                     
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Aug 28, 2010 12:10 am    Post subject:
Reply with quote

Posting "it isn't working" is a total waste. What output did you get and was messages did you get.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Sat Aug 28, 2010 12:33 am    Post subject: Reply to: Convert julian date to gregorian.
Reply with quote

I get

2010/08/25
2010/08/24

in my SORTOUT dataset.
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 Aug 28, 2010 12:34 am    Post subject:
Reply with quote

Hello,

Show all of the informational output from the problem run. . .
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: Sat Aug 28, 2010 1:32 am    Post subject:
Reply with quote

Gabriel,

If by "it doesn't work" you mean you're getting an error message, then I'd assume either you're using Syncsort, or you're using DFSORT but don't have the PTF that supports Y4T and TOGREG. See the following for complete information on that DFSORT PTF which has been available since Nov, 2009:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000174
Back to top
View user's profile Send private message
Gabriel Araujo Alves

New User


Joined: 20 Jul 2010
Posts: 38
Location: Brazil

PostPosted: Sat Aug 28, 2010 2:30 am    Post subject:
Reply with quote

look at my sysout...
i get this code in the "tricks"...

Code:
SYNCSORT FOR Z/OS  1.3.2.1N    U.S. PATENTS: 4210961, 5117495   (C) 2007
                                                      z/OS   1.11.0     
SYSIN :                                                                 
 SORT FIELDS=COPY                                                       
 INREC IFTHEN=(WHEN=INIT,                                               
                  BUILD=(01,07,Y4T,TOGREG=Y4T(/)))                       
                               *                                         
WER903I  SYNCSORT 1.3.2.1 IS NOT LICENSED FOR SERIAL 104BF, TYPE 2094 749
WER903I  PRODUCT WILL STOP WORKING IN  32 DAYS UNLESS A VALID KEY IS INST
WER268A  INREC STATEMENT   : SYNTAX ERROR                               
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                           
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                           
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 Aug 28, 2010 2:49 am    Post subject:
Reply with quote

Hello,

As we suspected, you are using Syncsort rather than DFSORT.

You need to look at the Syncsort documentation for date formats rather than the DFSORT "tricks" material.

I believe there are also some similar topics within our forum (there is a forum SEARCH feature that can be very useful)
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 Aug 28, 2010 2:51 am    Post subject: Reply to: Convert julian date to gregorian.
Reply with quote

Add on:

Scroll to the bottom of the topic here:
http://ibmmainframes.com/viewtopic.php?t=46140&highlight=julian

d
Back to top
View user's profile Send private message
Gabriel Araujo Alves

New User


Joined: 20 Jul 2010
Posts: 38
Location: Brazil

PostPosted: Sat Aug 28, 2010 11:38 pm    Post subject: Reply to: Convert julian date to gregorian.
Reply with quote

Thanks dick,
i really use Syncsort and this tricks does not works.
greatful...
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: Sun Aug 29, 2010 12:11 am    Post subject:
Reply with quote

Hello,

Quote:
i really use Syncsort and this tricks does not works.
Posting "it didn't work" is a complete waste of everyone's time. . . If you have a problem and want help, you must provide the details of the problem.

Post the informational/diagnostic output from the problem run (including the message ids).

It is not a trick and it does work. . . Working depends on exactly/correctly specifying the code and on having a release that supports the function(s).
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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us