Joined: 14 Mar 2005 Posts: 38 Topics: 15 Location: Bangalore
Posted: Mon Jun 05, 2006 12:46 am Post subject: Current Date and time in Dataset Name
Hi,
I want to create a dataset names with current date and time. I searched in this forum, I found solution, while implementing I found errors. Please review my JCL and correct me.
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
Posted: Mon Jun 05, 2006 12:50 am Post subject:
I haven't tried this, but instead of writing to the internal reader, try this writing to a data set and review the contents of the data set to be sure that you are generating the JCL as you expect it.
Joined: 14 Mar 2005 Posts: 38 Topics: 15 Location: Bangalore
Posted: Mon Jun 05, 2006 1:29 am Post subject: Current Date and time in Dataset Name
I tried to write into sysout, it's writing correctly. Also submitted the second step from my spool, it's sucessfully execeuted. But I submit using INTRDR, I got error.
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Mon Jun 05, 2006 4:33 am Post subject:
gharidoss,
Is your input file a PDS? If your are trying to copy a pds using sort then you need to provide the member name also. Try changing the following statement
I tried running the second JCL using IEBCOPY and i was able to run successfully and got RC=0.I have got all members unloaded from input dataset set referenced by INLIB as seen in the SPOOL (the output of the step) the dataset was created by current date and time.
However when i try to browse the dataset i get the following error:
Code:
Invalid record format
I had given the same parameters for LRECL,BLKSIZE AND RECFM as seen in the Information Parameter.How can i browse the dataset ? _________________ Shekar
Grow Technically
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