Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

There are two steps in a JCl, the first one generates a
report while the second step send an email saying the
report has been generated, but the second steps should only
be executed when the report file is non-empty. How can it
be acheived. We may include steps in between.

Answer Posted / squid

Just my thought -
You can set a code in your cobol program that writes the
report file to set a certain "return code" in the RETURN-
CODE field before exiting the program.
Depending on that return code from the program, you can
code IF END IF in your JCL.
Please let me know if that is wrong.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

4898


What is the function of dd disp parameter?

1133


Is there any command to check wether the ps file is in sorted order?

2883


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

1433


How dummy is used in jcl?

1147


State the uses of syspring, sysin, sort fields, sum fields and dummy.

1085


How can an in-stream dataset be terminated?

1337


when does a dataset go uncataloged?

1302


What is catelog procedure and how many catelog procedure to use in one job?

8682


How to alter the parameters for the existing gdg?

1200


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

1130


Can I send output of job to my remote device careerride123?

1131


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1458


How to execute 2nd and 4th steps among 5 steps in jcl proc?

1308


Explain about ISPF/TSO Commands

1944