In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd .
Where do you generate the date ??in cobol or JCL ??

Answer Posted / animesh

that can be done in jcl using some utility likkje jhsidate

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

914


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

1981


List the different components of jcl statement?

683


How does jcl act on code(if you take a cobol program)?

698


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

724






For what purpose steplib and joblib are used ?

678


what is use of space parameter in dd statement?

742


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

705


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

577


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

708


what are the various stages of job processing?

729


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

606


Explain how can return codes be tested before execution of a job step?

815


Explain the function of dd disp parameter?

588


How can the attributes of one sms dataset be copied to another dataset?

844