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
 

 

SORT Sytax Error.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SORT Sytax Error.
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: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 10, 2010 1:33 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Aug 10, 2010 2:10 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 10, 2010 7:04 pm    Post subject:
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:

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

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

Senior Member


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

PostPosted: Tue Aug 10, 2010 7:10 pm    Post subject:
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    Post subject:
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: 2238
Location: @my desk

PostPosted: Wed Aug 11, 2010 12:26 am    Post subject: Reply to: SORT Sytax Error.
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Aug 11, 2010 12:09 pm    Post subject:
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    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 Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm


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