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
Differentiate between the joblib and the steplib statements?
How to pass data to a program that is coded in an exec statement?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
What is the use of symbol // in jcl?
Does jcl support automatic restart?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
how can the same proc be re-used and called by many jobs?
How gdg are concatenated?
What dd statement is used to supply the name of a dataset?
how to compare two datasets without using superce because output is limited to 133 bytes
Explain in DD statement what is the use of DCB parameter?
What is the function of a dd statement?
Is it possible to left uncode disp? If yes, how?
How can the disposition of sysout datasets be set for an entire jobstream?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?