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

Convert julian date to gregorian.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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

Global Moderator


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

PostPosted: Sat Aug 28, 2010 12:33 am
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 28, 2010 12:34 am
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Aug 28, 2010 1:32 am
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:

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
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 28, 2010 2:49 am
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 28, 2010 2:51 am
Reply with quote

Add on:

Scroll to the bottom of the topic here:
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
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Aug 29, 2010 12:11 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top