Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Apr 20, 2004 5:05 am Post subject:
Misi,
You cannot define the dataset with one of the qualifier starting with a numeric. In your requirement you wanted userid.yyyymmdd.hhmmss. You need to have alphabet as a prefix in qualifier.
So is it okay if the dataset looks like this?
Code:
userid.Dyymmdd.Thhmmss
I used D to signify the date and T to signify the time.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue Apr 20, 2004 5:39 am Post subject:
Superk,
A couple of corrections. In your step0001 you used &userid, but i guess you actually meant &Sysuid. Also in step0002 you forgot the name of the dataset in DSN field.
Also I am not sure why you used to 2 steps when it can be just done in one step.
Sorry - I had just got up and hadn't had my coffee yet.
Personally, I prefer to use normal datasets throughout the job, and only at the end, copy the working dataset (with DISP=(SHR,DELETE)) into the dataset with the DATE/TIME fields.
It's always hard to tell from these posts if the poster requires that the dataset name be carried forward for multiple steps of the job (which is where I recommend using either the Job Scheduler or setting a variable using a SET command), or if they just need an output dataset and the end of the job with the DATE/TIME (I call this a DATE/TIME stamp).
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue May 25, 2004 11:58 am Post subject:
Suresh,
The above JCL is creating another JCL on the fly and submitting to Intrdr. It is just my habbit that I start all my jobsteps as STEP0100, STEP0200... so on.
Change the SYSOUT statement in the posted JCL to the following.
Code:
//SYSOUT DD SYSOUT=*
Now submit the job with this change and now check the sysout of the JOB. YOu will find another JCL with all the system symbols translated.
With INTRDR (Internal Reader), the job is submitted and the dataset is created with date and time.
Search this forum for INTRDR and you will find a detailed explanation.
All times are GMT - 5 Hours Goto page 1, 2, 3, 4Next
Page 1 of 4
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum