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

What does a disposition of (MOD,DELETE,DELETE) mean ?

668


what is the purpose of coding notify parameter in job statement?

688


what is DSN in JCL and what are the parameters to declare the DSN?

722


Where can program checkpoints be stored for use in a restart?

851


What happens if both JOBLIB & STEPLIB is specified ?

612






What is the use of symbol // in jcl?

931


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2001


How can a jobs execution priority be modified?

799


What is the function of //jcllib statement?

811


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

844


What is the significance of addrspc parameter in the exec statement?

622


Can an individual step be restricted from using all the jobs allowed cpu time?

1011


how do you access an uncataloged dataset in a jcl?

841


What is the format of comment statement?

671


I need exexution process for JCL programs

1853