IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Set return code based on Input data


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Fri Aug 14, 2015 6:54 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 14, 2015 7:17 pm
Reply with quote

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
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Fri Aug 14, 2015 7:20 pm
Reply with quote

Hi,

Yes. I would like to set the condition code to 4. Please advise me.

Thanks
Vijay
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7311
Location: Inside the Matrix

PostPosted: Fri Aug 14, 2015 7:27 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts compare two file to find position/dat... SYNCSORT 2
No new posts Secondary index error while loading d... IMS DB/DC 2
No new posts Execute step regardless of previous s... JCL & VSAM 2
No new posts SKIP LOCKED DATA in UPDATE statement DB2 9
This topic is locked: you cannot edit posts or make replies. Is there a way to restrict user login... All Other Mainframe Topics 11
Search our Forums:

Back to Top