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

Is acct parameter mandatory?

925


Explain the function of dd disp parameter?

793


Can we use DISP=SHR in output file in JCL

1167


how do you code a null statement?

1003


How is a type of file defined in the jcl that executes the cobol program?

905


What is multithreading in jcl?

1171


which utility is used a dummy utility?

1065


What is NOTCAT ?

1028


Explain the function of //jcllib statement?

929


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

912


what is use of space parameter in dd statement?

949


Are there any set of rules for the names of the steps used in a job?

844


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

1042


How do you submit a job for execution?

825


What is job control language?

791