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
 
Set return code based on Input data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
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    Post subject: Set return code based on Input data
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: 8449
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 14, 2015 7:17 pm    Post subject: Reply to: Set return code based on Input data
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    Post subject: Reply to: Set return code based on Input data
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Aug 14, 2015 7:27 pm    Post subject: Reply to: Set return code based on Input data
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    IBMMAINFRAMES.com Support Forums -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SECTION BASED ON FIELD speermb DFSORT/ICETOOL 9 Mon Jun 17, 2019 9:41 pm
No new posts Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am
No new posts Regarding mroe data to be processed i... vinu78 DB2 1 Mon May 27, 2019 7:31 pm
No new posts masking data with HPU jzhardy DB2 0 Tue May 14, 2019 2:43 pm
No new posts How to browse RECFM=VBS DSORG=PSE seq... Alan Playford JCL & VSAM 7 Fri May 10, 2019 2:59 pm

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