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
 

 

SYNCSORT Syntax Error
Goto page 1, 2  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 2:38 pm    Post subject: SYNCSORT Syntax Error
Reply with quote

I am getting this error.

OUTREC STATEMENT : SYNTAX ERROR


heres the step.


//STEP01 EXEC PGM=ICEMAN
//SORTIN DD *
>.<
><
/*
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTREC FINDREP=(IN=C'>.<',OUT=C'><')
/*
//*


Can someone pls help?


Regards/Ashok
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Aug 07, 2008 2:46 pm    Post subject: Reply to: SORT
Reply with quote

did You search the forums for findrep,
if You had You would have found that... the correct syntax as in Frank Yaeger example/suggestion is :
Code:

   OPTION COPY
   INREC FINDREP=(IN=C'>.<',OUT=C'><')


when You post jcl an control cards, remember to use the code tag,
it will preserve formatting and ( especially for sort ) the leading blanks
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 2:51 pm    Post subject: Reply to: SORT
Reply with quote

now its giving me INREC STATEMENT : SYNTAX ERROR.
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: Thu Aug 07, 2008 2:54 pm    Post subject:
Reply with quote

Have you ever considered posting the messages and codes displayed by the failure to help others help you ?
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 2:57 pm    Post subject: Reply to: SORT
Reply with quote

SYSIN :
OPTION COPY
INREC FINDREP=(IN=C'>.<',OUT=C'><')
*
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
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Aug 07, 2008 2:58 pm    Post subject: Reply to: SORT
Reply with quote

do You have the proper level of dfsort ptfs
as per Frank Yaeger explanation on new dfsort/icetool features
http://www.ibmmainframes.com/viewtopic.php?t=32376&highlight=findrep

or are You running SYNCSORT ?

when posting error messages, please post the full message, complete with the message identifier and number (WER..... or ICE.....) it will save people time
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Aug 07, 2008 2:59 pm    Post subject: Reply to: SORT
Reply with quote

Ashok,

WER messages indicates that you are using SYNCSORT and not DFSORT. FINDREP is a new feature added in DFSORT.
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 3:07 pm    Post subject: Reply to: SORT
Reply with quote

Can anyone pls give me the JCL as to how it shud be for using FINDREP?



Thanks
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Aug 07, 2008 3:09 pm    Post subject:
Reply with quote

Hi,

which part of Aaru's reply did not make sense ?

Gerry
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 3:11 pm    Post subject: Reply to: SORT
Reply with quote

Does it mean the same jcl will run fine if DFSORT is installed.


//STEP01 EXEC PGM=ICEMAN
//SORTIN DD *
>.<
><
/*
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC FINDREP=(IN=C'>.<',OUT=C'><')
/*
//*
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Aug 07, 2008 3:18 pm    Post subject: Reply to: SORT
Reply with quote

Ashok,

Quote:
Does it mean the same jcl will run fine if DFSORT is installed.


Yes, Please be aware that SYNCSORT and DFSORT are two different and competitive sort products.
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 3:26 pm    Post subject: Reply to: SYNCSORT Syntax Error
Reply with quote

Aaru

Does coding PGM=ICETOOL mean that its syncsort or DFsort?



Ashok
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu Aug 07, 2008 3:28 pm    Post subject: Re: Reply to: SORT
Reply with quote

Hi,
ashok_srivatsav wrote:
Does it mean the same jcl will run fine if DFSORT is installed.

That's correct.

DFSORT introduced FIND and REPlace function in July, 2008. You'll need z/OS DFSORT V1R5 PTF UK90013 to use it.

Further, DFSORT and SyncSort are competitive products, some funtion introduced in one doesn't mean that it's also been introduced in other as well, however, it may be at times..
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Aug 07, 2008 3:29 pm    Post subject: Reply to: SYNCSORT Syntax Error
Reply with quote

Ashok,

Quote:
Does coding PGM=ICETOOL mean that its syncsort or DFsort?


From manuals:

ICETOOL is a multipurpose DFSORT utility that uses the capabilities of DFSORT to perform multiple operations on one or more data sets in a single step.

SYNCTOOL is the equivalent of ICETOOL for SYNCSORT.

Btw what exactly is your requirement?
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 3:39 pm    Post subject: Reply to: SYNCSORT Syntax Error
Reply with quote

I want to sort FB input records with variable position/length fields, such as comma separated values.


I/P

Marketing,96218,+27365
Development,3807,+1275
Research,7283,+5001
Development,1700,-5316
Research,978,+13562
Development,3807,-158
Research,7283,+5002
Marketing,52,-8736
Development,5781,+2736
Marketing,52,+1603
Research,16072,-2022

O/P shud be like this.
11 bytes of dept name, next 5 bytes of number and next 6 bytes of number including the sign.

Marketing 96218+27365
Development3807 +1275
Research 7283 +5001
Development1700 -5316
Research 978 +13562
Development3807 -158
Research 7283 +5002
Marketing 52 -8736
Development5781 +2736
Marketing 52 +1603
Research 16072-2022


Following is the control card.

INREC PARSE=(%00=(ENDBEFR=Cā€™,ā€™,FIXLEN=11),
%01=(ENDBEFR=Cā€™,ā€™,FIXLEN=5),
%02=(FIXLEN=6)),
OVERLAY=(31:%00,42:%01,47:%02)
SORT FIELDS=(31,11,CH,A,42,5,UFF,A,47,6,SFF,D)
OUTREC BUILD=(1,30)



Should i use PGM=SORT or PGM=ICEMAN or PGM=ICETOOL for this?



Ashok
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Aug 07, 2008 3:48 pm    Post subject: Reply to: SYNCSORT Syntax Error
Reply with quote

it all depends icon_biggrin.gif

Just to clarify a few points in program naming....

DFSORT ( by IBM ) installs as:
ICEMAN ( with aliases SORT AND DFSORT )
ICETOOL
its messages are prefixed by ICE

SYNCSORT ( by ..... )
SYNCSORT
SYNTOOL
its messages are prefixed by WER

many shops create aliases
SORT and ICEMAN for SYNCSORT
ICETOOL for SYNTOOL
in order not to have to change jcl streams

about the naming in Your organization ask Your support
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu Aug 07, 2008 3:50 pm    Post subject:
Reply with quote

Hi,

Aarrgghh..what connection does your last post has with the start of this thread.. icon_confused.gif

Check this thread http://ibmmainframes.com/viewtopic.php?t=1184&highlight=difference+dfsort
and underfstand this:
Quote:

DFSORT is a sort product sold by IBM.
SYNCSORT is a competing product sold by Syncsort, Inc.
And there is one more - CA-SORT, sold by Computer Associates.

Obviously, most shops only buy one of these products.

ICEMAN is just another name (entry point) used for the sort program. It's common practice in shops for the system programmers to set up all the common names as entry points to their purchased SORT product. You will often find that PGM=SYNCSORT and PGM=DFSORT will both work in your shop, and both execute the same sort program (whichever one your shop purchased).

ICETOOL is an expansion to the basic SORT program, that allows you to use alternate (simpler) commands to do multiple sort operations in a single sort step. I think that ICETOOL doesn't do anything that you couldn't do via coding multiple DFSORT steps -- it just makes coding them a bit easier.

ICETOOL is supplied as part of the basic SORT package -- if you have DFSORT, you also have ICETOOL. Many people don't seem to realize this. And some troglydite managements don't understand this, and forbid use of ICETOOL in production, restricting programmers to only SORT steps. Such managements are fools (but, alas, not uncommon).

SYNCTOOL is Syncsort, Inc.'s version of the ICETOOL package.

All these are very similar products -- they all do basic sorting. And they use similar commands. For most basic sort operations, the same commands will work in all the products. When you get into more advanced functions, there are some differences between them -- some functions are only offered in one or the other product, and sometimes different syntax is used for the same operations.


It might need modifiaction, but would provide you a start..

PS.: Sorry Aaru, I was too tempted..

(Post edited by request)
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Thu Aug 07, 2008 3:55 pm    Post subject:
Reply with quote

Ashok,

Which version of Syncsort are you using.
PARSE is supported only by Syncsort 1.3

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

Senior Member


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

PostPosted: Thu Aug 07, 2008 3:57 pm    Post subject:
Reply with quote

Hi Enrico,

Just in case, this
Quote:
Aarrgghh..what connection does your last post has with the start of this thread..
creates any confusion, this was meant for the TS..

I should get my keyboard changed.. icon_redface.gif .. Actually I was taking time in positioning my glasses..36_2_51.gif and you typed by the time..
Back to top
View user's profile Send private message
ashok_srivatsav
Currently Banned

New User


Joined: 29 Jun 2007
Posts: 15
Location: India, Bangalore

PostPosted: Thu Aug 07, 2008 3:58 pm    Post subject: Reply to: SYNCSORT Syntax Error
Reply with quote

mine is 1.2.3
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


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