William, I believe TRAILER1 does not respond with an empty dataset since the third qualifier exceeds the maximum length for a dataset.
--------------------------------------------------------
superk,
Yes, the dataset name is invalid as you stated, and the JCL errors.
I only looked at the output under ACCSXSP and not under ACCSXS.
I shortened the third qualifier to one letter to make the name valid.
The datset created as per the JCL is PHRD.TRANSFER.A280310.NVSAM
------------------------------------------------------------
gcicchet,
INTRDR was new to me. I did not look the output under ACCSXS as stated above.
------------------------------------------------------------
My requirement was to take a backup of dataset.prd for example in a dataset with timestamp as qualifier. That way, a rerun of the JCL on the 'same day' would not error.
Can a timestamp component - hhmmss (hour,minute,second) be added to the above JCL in addition to the date?
For example, the dataset name after the addition of the time component will be PHRD.TRANSFER.A280310.Bxxxxxx.NVSAM where 'xxxxxx' is the timestamp.
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Why not simply make sure the "previous" backup is deleted before the "current" one is created? Change the trailer to submit 2 steps - one to housekeep and the other to catalog the dataset. Then there would be no need to create a hodge-podge of datasets that will need to be managed . . .
Thanks. As you suggested, the JCL was modified to delete and recreate the dataset. It works.
This works if the job is run once a day.
If the requirement is to take backups multiple times in one day, then this will not work as each backup dataset within the same day needs to have a timestamp, but in that case, using a GDG would be easier.