Posted: Wed Apr 09, 2003 12:17 am Post subject: Name a Dataset from Current Month!
Folks,
I have a bizarre requirement on hand, i am doing a Backup of load modules in our system. The job generates a list of all Loads that are to be backed up(using a Vendor tool), and then takes a backup onto a GDG Generation (PDS).
Now, i want to eliminate the use of GDG and go for a PDS with the naming format - P.**.APR2003 for the Month of April, these job would run every month, so they would be followed by MAY2003 etc..
Can this be done using JCL or any other means?Please Help!
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Wed Apr 09, 2003 9:22 am Post subject:
Enigma,
The following DFSORT/ICETOOL jcl will give you the desired results. If you have syncsort at your shop then change the program name to SYNCTOOL. A brief explanation of the job.
The first copy operator gets the system date in the format MM/DD/CCYY.
The second copy operator takes in that date and creates the whole copy step using IEBCOPY Which will submit the job to the INTRDR
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Apr 09, 2003 11:01 am Post subject:
Kolusu said:
Quote:
Frank will be able to let you another way of doing this using the new features which are introduced in via PTF
Right. DFSORT R14 PTF UQ99331 (March, 2002) let's you use DATEn constants for INREC, OUTREC and OUTFIL OUTREC that can simplify this job to one COPY operation instead of two COPY operations like so:
kolusu / Frank ,
Ur solution works, but i have a few things to say - this job has to run in Production, the datasets that are created are Production datasets. The scheduling tool we use is CA7. Iam not sure if the second job that is created out of this and submitted, will be recognized or allowed to run by CA7.
Remember, Production Datasets can be created only when run through ca7. and i dont think that will happen with the soln u have suggested.
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Thu Apr 10, 2003 6:51 am Post subject:
Enigma,
The second job will run and it will not have any record in CA-7. As long as you are permitted to submit the job to the INTRDR you will be able to create the dataset. I guess you need to change the jobcard from your TID to one of your production job, as such most shops do not let TID's create production datasets in production. since it is run via CA-7 remove the notify parameter also.
Kolusu,
The question is, will it run through the CA7 queue? It has to, to create Prod Datasets. In our place, unless a job is scheduled to run under CA7, it cant create or delete datasets.
Listen, if anybody can run one job in CA7 and have that job, trigger-run other jobs through the internal reader(Creating and deleting datasets), then what happens to security(for GOD's sake, these are critical datasets)? is it so easy to bypass CA7? i dont think so!
Anyway, i will check with my people here.
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Thu Apr 10, 2003 7:31 am Post subject:
Enigma,
CA-7 is just scheduling package. It has no control over your dataset creation/deletion . It is your site's RACF/ACF2 package which grants the authority to create/delete datasets.
On the side note there are many ways to bypass CA-7 since it is just a schdueling package.The tough thing would be by passing RACF/ACF2 authorizations
Hope this is clear now
Kolusu
PS: Don't get too agressive if you don't like the solution. You can tone down your voice.
Kolusu,
it is not that i didnt like ur solution, if it had been so, i would not have tried ur solution, but i have tested it in the test region.and wanted to use it in Prod.
only that, i wanted to be a 100% sure when i hand this over to the Production Control people. and if in any way, i have offended you or projected that i was of the offensive kind, do forgive! (iam not that kind of a person!).
Quote:
CA-7 is just scheduling package. It has no control over your dataset creation/deletion
i didnt say that, all i said was the second job might not run under the CA7 queue and might not enjoy the same privilages as the first job (or thats what i thought, that CA7 determines what authority to be given to the job and RACF will check the authorizations and grant access) .Please help me out with this RACF and stuff, a link maybe so that i can understand better.
iam new to all this, infact just 6 months old to the world of mainframes, and iam trying to put bits and pieces together, trying to get the full picture, my knowledge therefore is very much what i percieve from what i see and what i hear from others.
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