problem while accessing a Temporary dataset

Tags:
390
DB2
Mainframe
zSeries
hello, i have about 25 steps in my jcl, in the 4th step i have created a temporary data set and passed it to subsequent steps(5th,6th,9th and so on). while accesing it in the 7th step an ABEND occurs and the job terminates abnormally. now i want my jcl to RESTART from step 7th itself. how would i do that. thanx in advance

Answer Wiki

Thanks. We'll let you know when a new response is added.

Assuming you are running the job by yourself and not using something like CA7 to run the job, you will have to “RESTART” at the job step that creates the temp data set. Because once the original job terminated the temp data set is gone, you will have to recreate it. On the job card you use the “RESTART=STEP?” job card parameter. You would restart in step4 because that’s the step that created the temp data set.

example:
//JOBNAM01 JOB(12345),’JOB DESCRIPT’,MSGCLASS=X,CLASS=B,
// RESTART=STEP4
//*

Tom

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • PscJohnD
    An alternative is to create the dataset as a permanent (cataloged) dataset, then delete it after the job steps that use it have completed successfully. Note: In practice, it is a good idea to add two job steps, one at the beginning of the job to delete the dataset if it was left over from a previous failed job and one at the end of the job to delete the dataset on success of previous job steps.
    0 pointsBadges:
    report
  • Programming44
    thanx for your invaluable suggetions but still i would like to know to if thez any altenative method, provided that i am not using any job schedulers(CA7 or CA11).
    0 pointsBadges:
    report
  • Roscom
    No I'm afraid there is not an alternative. You will have to restart your job from the step that creates the TEMP dataset. If your job is a long running job, TEMP datasets are not advisable for this very reason. Best to alter your JCL to write your dataset out. That way if it fails again you will be able to restart it from the failing step. Hope this helps.
    0 pointsBadges:
    report
  • Anettis
    How about trying the RESTART= command in the job card?
    0 pointsBadges:
    report
  • Anettis
    And as stated by another poster you must use use a cataloged dataset.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following