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: 7950
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: 7272

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 Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm


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