How do you handle empty files in a JCL ?
Answer Posted / bharani
Read first record of the file using IDCAMS, It will return
the cc=0 if the file is not empty, otherwise it returns
CC=4.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
what are the statements that are not valid to be included in an include statement?
Explain about LMFREE�free data set from its association with data ID
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
When output dataset space is required, what quantity categories are used?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What is the function of job statement in jcl?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Is acct parameter mandatory?
How can a fb file convert to vb file using sort program?
Can I send output of job to my remote device careerride123?
Explain how can a jobs execution priority be modified?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
what is JCL?
what sort card you will use to copy the data from one dataset to another dataset?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?