We are using 2 files , file one has data, file two is
empty.Using jcl how can we find the other file is empty?

Answer Posted / deepak dada, jaipur

the handling would happen


if the file is empty then pass the zero to return code in
cobol program

then go to jcl step and check for the conditiom code( 0,
eq) where the program is getting called and do whatever you
want to do

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want to store 20 digits . how will u do it in cobol ?

1089


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2306


What are the 2 types of parameters in dd statement?

860


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

944


Name a few IBM utility programs, and explain its function.

4682


How can a stopped job be started again?

903


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4556


Where & How Do You Code Identifier In Jcl?

931


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

1000


what is the purpose of coding class parameter in job statement?

977


if the submitter of a job wants to inform another user about the job completion, how can it be done?

985


What is the function of the dd mgmtclas keyword in sms datasets?

991


What is the format of comment statement?

898


what is the resolution for sb37 error

8331


What is NOTCAT ?

1033