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

SORT Sytax Error.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gladint
Warnings : 1

New User


Joined: 15 Apr 2010
Posts: 3
Location: Chennai

PostPosted: Tue Aug 10, 2010 1:19 pm
Reply with quote

Hi All,

I'm getting syntax error while using

"INREC BUILD=(1,8,Y4T,TOJUL=Y4T)"

can anyone please explain the syntax & help me to correct the syntax.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 10, 2010 1:33 pm
Reply with quote

Post the output not the input. Post all of the error messages and codes.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Aug 10, 2010 2:10 pm
Reply with quote

Which manual specifies format Y4T ? I can only seem to find Y2T....

Garry.
Back to top
View user's profile Send private message
gladint
Warnings : 1

New User


Joined: 15 Apr 2010
Posts: 3
Location: Chennai

PostPosted: Tue Aug 10, 2010 3:00 pm
Reply with quote

expat,
My code is

//SORTIN DD *
20090520
20100106
20100921
20081217
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,8,Y4T,TOJUL=Y4T)
/*

Error message is.
SYSIN :
OPTION COPY
INREC BUILD=(1,8,Y4T,TOJUL=Y4T)
*
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
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 10, 2010 7:04 pm
Reply with quote

Garry Carroll wrote:
Which manual specifies format Y4T ? I can only seem to find Y2T....
Garry- if you are using DFSORT, then with z/OS DFSORT V1R5 PTF UK51706 or z/OS DFSORT V1R10 PTF UK51707, you can now use the new date conversion function TOJUL. These links show some working examples:

ibmmainframes.com/about41165.html
www.ibmmainframes.com/about40646.html

Hope this helps.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 10, 2010 7:10 pm
Reply with quote

gladint wrote:
WER268A INREC STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
What release of SyncSort you are working with? Till SYNCSORT FOR Z/OS 1.3.2.2R Y4T was not available adn I've not yet verified if there had been any new release of SyncSort lately.
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Aug 10, 2010 11:48 pm
Reply with quote

Try this
Code:

//SORTIN DD *
20090520
20100106
20100921
20081217
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
  OPTION COPY
  INREC BUILD=(1,8,Y4T,TOJUL=Y4T)
/*


Leave some space when you give OPTION COPY. Not a big catch but still may help icon_lol.gif icon_biggrin.gif

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

Moderator


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

PostPosted: Wed Aug 11, 2010 12:26 am
Reply with quote

arvind.m,

The job which you gave may work for you but NOT for the OP since you have DFSORT and the OP has a different product.ie., Syncsort. Please keep in mind that solutions can vary across various products and versions.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Aug 11, 2010 12:09 pm
Reply with quote

Anuj,

Quote:
Garry Carroll wrote:
Which manual specifies format Y4T ? I can only seem to find Y2T....
Garry- if you are using DFSORT, then with z/OS DFSORT V1R5 PTF UK51706 or z/OS DFSORT V1R10 PTF UK51707, you can now use the new date conversion function TOJUL.


.... thanks, but I passed no remark on TOJUL=

Garry
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top