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
 

 

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: 7904
Location: Bellevue, IA

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: 7223

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 What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm


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