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

Senior Member


Joined: 08 May 2006
Posts: 1005
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: 2352
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

Senior Member


Joined: 08 May 2006
Posts: 1005
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 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am

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