View previous topic :: View next topic
|
Author |
Message |
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Hi,
I would like to set MAXCC=4 when the 1st byte of the input record is 0 in Syncsort. My existing sort card is given below. Can you please help me how i can achieve it?
Sort Fields=copy
Outrec fields=(2:1, 495)
End
With Thanks
Vijay |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Terminology is critical in IT, where similar terms may mean very different things. And MAXCC is a term specific to the use of IDCAMS -- and ONLY IDCAMS. It is wrong to refer to MAXCC when talking about a SORT product. You probably want the step condition code to be set to 4. |
|
Back to top |
|
|
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Hi,
Yes. I would like to set the condition code to 4. Please advise me.
Thanks
Vijay |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The other place you see MAXCC, which I think is where the confusion arises, is the $HASP165 message produced by NOTIFY on the JOB card.
Your existing SORT Control Cards are creating 496-byte records. The first byte is blank, and a copy of the input data from byte two for a length of 495.
It is unclear how that relates to your task.
I'd suggest an INCLUDE for the value you want to test for. An OPTION STOPAFT=1, an OUTFIL which in the JCL is dummied-out. Then the SyncSORT option on OUTFIL to produce an RC of 4 if there is data on that OUTFIL dataset.
Except for wondering how that comes close to what you've come up with, so I don't know. |
|
Back to top |
|
|
|