View previous topic :: View next topic
|
Author |
Message |
gladint Warnings : 1 New User
Joined: 15 Apr 2010 Posts: 3 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Post the output not the input. Post all of the error messages and codes. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Which manual specifies format Y4T ? I can only seem to find Y2T....
Garry. |
|
Back to top |
|
|
gladint Warnings : 1 New User
Joined: 15 Apr 2010 Posts: 3 Location: Chennai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
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
Thanks, |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
|