How to pass return codes from cobol to jcl?

Answer Posted / hari

move value to retun-code it should not declared in working -storage section.
by using internalreader we can pass the data from cobol to jcl
//sysout dd sysout=(*,intrdr)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1023


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

907


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

903


What are the different rules for performing sort operation?

952


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2228


How do get the result of your program directly on your pc?

2067


How arrays can be defined in COBOL?

832


) how do u code after getting data?

1788


Why did you choose to work with ibm mainframe cobol programming?

848


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2239


how can i see junk values in dclgen or in hostvariable of comp ?

2750


What rules are followed by the search verb.

827


How are the next sentence and continue different from each other?

1010


what is the difference between COBOL2 AND COBOL390?

2717


Name the sections present in data division.

898