Return-code
Moderators: dbzTHEdinosauer, Moderator Group
Return-code
Hi All,
As we know that Return-code is to send condition code(maxcc) when we submit the job based on logic in our program.
Is there is any parameter like Return-code to send Alphabetic data instead of numeric data.
like i want to display message in alphabetic after submitting the job as we are getting it for return-code.
eg:
move '8' to retrun-code.
I want to display like below.
move 'data is not matching' to return-code.
let me know the parameter for getting the message.
Regards,
Venky.
As we know that Return-code is to send condition code(maxcc) when we submit the job based on logic in our program.
Is there is any parameter like Return-code to send Alphabetic data instead of numeric data.
like i want to display message in alphabetic after submitting the job as we are getting it for return-code.
eg:
move '8' to retrun-code.
I want to display like below.
move 'data is not matching' to return-code.
let me know the parameter for getting the message.
Regards,
Venky.
Thanks Dikdude,
I have included the code like below.
If file-status-code = 0
move 8 to return-code
else
move 0 to return-code
end-if.
here,when I am submitting the job I am getting Maxcc=8 it depends upon the input file.
Now, my question is instead of 8 or 0, can we pass alphabetic data into any other parameter like we are passing numeric data into return-code, I know return-code will not accept alphabetic data.
my requirement is to pass alphabatic data and need to pass data like 'data is not matching' and need to display this data after job completion.
let me know if ther is any procedure.
Regards,
Venky.
I have included the code like below.
If file-status-code = 0
move 8 to return-code
else
move 0 to return-code
end-if.
here,when I am submitting the job I am getting Maxcc=8 it depends upon the input file.
Now, my question is instead of 8 or 0, can we pass alphabetic data into any other parameter like we are passing numeric data into return-code, I know return-code will not accept alphabetic data.
my requirement is to pass alphabatic data and need to pass data like 'data is not matching' and need to display this data after job completion.
let me know if ther is any procedure.
Regards,
Venky.
Where you want to disply this message? SYSOUT or somewhere else?my requirement is to pass alphabatic data and need to pass data like 'data is not matching' and need to display this data after job completion
Message in the same step or on some other steps?
Guru:-)
You're never fully dressed without a smile
You're never fully dressed without a smile
Hi Guru,
No I don't want in sysout, in sysout if we want to display we can use 'Display' in the program.
When we run any program we will be seeing the message like maxcc=0 after completing the job right?
Below that maxcc=0 message only I need to dispaly 'data is not matching'.
can we do this?
Thanks.
Regards,
Venky.
No I don't want in sysout, in sysout if we want to display we can use 'Display' in the program.
When we run any program we will be seeing the message like maxcc=0 after completing the job right?
Below that maxcc=0 message only I need to dispaly 'data is not matching'.
can we do this?
Thanks.
Regards,
Venky.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Hi William,
Exactly you are right!
Actually I am writing a program like if a dataset is empty I am sending Maxcc=8 and If a dataset is having data in it then I am sending Maxcc=0 by using return-code. Please look into the below code.
If file-status-code = 0
move 8 to return-code
else
move 0 to return-code
end-if.
Now, I want is after maxcc i need to display some message.
for example: if the dataset is empty I am getting maxcc=8 ,after maxcc=8 i need to display like 'there are no records in the file'.
Thanks.
Regards,
Venky.
Exactly you are right!
Actually I am writing a program like if a dataset is empty I am sending Maxcc=8 and If a dataset is having data in it then I am sending Maxcc=0 by using return-code. Please look into the below code.
If file-status-code = 0
move 8 to return-code
else
move 0 to return-code
end-if.
Now, I want is after maxcc i need to display some message.
for example: if the dataset is empty I am getting maxcc=8 ,after maxcc=8 i need to display like 'there are no records in the file'.
Thanks.
Regards,
Venky.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page