How do you set a return code to the JCL from a COBOL
program?

Answer Posted / suresh . e

01 RETURN-CODE-OUT PIC S9(09) USAGE COMP.
01 RETURN-CODE-IND PIC S9(04) USAGE COMP. first
declaration is to define the variable for return
code.Second declaration is for defining a Null indicator.

Is This Answer Correct ?    0 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In COBOL, what is the different between index and subscript?

753


what is amode(24), amode(31), rmode(24) and rmode(any)?

689


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


How many bytes S(8) comp field occupy and its maximum value?

1626


What is amode(24)?

680






here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6802


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5367


What is the difference between comp and comp-3?

692


How to print 10 to 1 if the input have only 10 digit number?

807


What is the difference between PIC 9.99 and 9v99 in COBOL?

729


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2098


What is the difference between goback, stop run and exit program in cobol?

917


How do you define a variable of comp-1 and comp-2?

699


What is length is cobol?

641


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

694