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


Please Help Members By Posting Answers For Below Questions

Differentiate between the joblib and the steplib statements?

844


How to pass data to a program that is coded in an exec statement?

807


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

849


What is the use of symbol // in jcl?

910


Does jcl support automatic restart?

734






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?

1798


how can the same proc be re-used and called by many jobs?

892


How gdg are concatenated?

657


What dd statement is used to supply the name of a dataset?

760


how to compare two datasets without using superce because output is limited to 133 bytes

1469


Explain in DD statement what is the use of DCB parameter?

636


What is the function of a dd statement?

694


Is it possible to left uncode disp? If yes, how?

694


How can the disposition of sysout datasets be set for an entire jobstream?

824


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

784