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 are the jcl procedures?

649


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2070


Explain the function of the dd dcb keyword?

706


write a jcl to execute a job by 7:00 am on jan 20,1986?

703


What is one line to pass PARM from JCL to COBOL?

929






What is the significance of addrspc parameter in exec statement?

735


How can values be passed from the job stream to an executable program?

879


How can a fb file convert to vb file using sort program?

809


Is automatic restart possible in jcl? If yes, how?

661


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1805


what is the JCL statement consists of?

699


List in order the hierarchical levels of jcl?

673


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

610


Explain how can a stopped job be started again?

640


What is the function of dd name parameter with a 2 part structure; audit.report?

709