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 / sundar
Using IDCAMS utility
In SYSIN:
PRINT(infile) COUNT(1)
If this step return 4 then the file is empty otherwise if
return 0 then the file is not empty.
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What parameter of the job statement is used to limit the cpu time consumed by the job?
what happens in execution stage in job processing?
Is it possible to code instream data in a PROC?
how to do automated restart when a job abends?
which utility is used to run a cobol-db2 program?
what operation is performed by job statement?
In sms datasets, what is the function of the dd avgrec keyword?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
What is the function of dd name parameter with a 2 part structure; audit.report?
Explain about LMFREE�free data set from its association with data ID
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.
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?