View previous topic :: View next topic
|
Author |
Message |
senjay
Active User
Joined: 10 May 2007 Posts: 147 Location: India
|
|
|
|
Hi,
I am trying to write a common step for taking backup of files.
While taking backup of PS file to PS file, I am using LIKE parameter to copy the LRECL, RECFM, SPACE, etc of the input file to output file.
The problem comes when i am trying to take the backup of GDG to PS file. I can't use LIKE parameter as
a) QW of LIKE says not to use this parameter for GDGs
b) when i used LIKE parameter for GDGs with fully qualified name (ex: LIKE=myhlq.xxx.G0006V00, it works. I can't use this as each and every time i can't refer the fully qualified name.
When i used IEBGENER,
Code: |
//STEP2 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=my.input.GDG(0)
//SYSUT2 DD DISP=(NEW,CATLG,DELETE),
// DSN=my.output.ps
//*
|
I am getting error saying that space not specified for SYSUT2.
Code: |
IEF344I XXXXXXX STEP2 SYSUT2 - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET
|
As this is for n number of files, determining space for each and every files and mentioning it in the SPACE paramter explicitly is almost not possible for me. could someone guide me here? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
1. Contact your site support group to determine if they have any site standards that would apply. They may have something already set up that could help you.
2. Get the space data from IDCAMS, LISTDSI, or other tool and use this to create your JCL dynamically to allocate the files with the correct SPACE parameter.
3. Code a small primary, large secondary, and RLSE for every file.
4. Use DF/DSS (or other tool available on your site) to back up the GDG files to tape so you don't have to worry about the SPACE parameter. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you consider DF/DSS or any other tool that would be a better choice than IEBGENER. IEBGENER can be handy for a quick copy, but is practically never used for wholesale backup purposes.
Also suggest you talk with the storage management people for the system and ask how backups are normally performed on that system. |
|
Back to top |
|
|
senjay
Active User
Joined: 10 May 2007 Posts: 147 Location: India
|
|
|
|
Hi Robert,
Thanks for your reply. I already thought about options 2), 3) and i am looking about the possiblities for 2). I would not prefer 3). As you suggested, I am going to contact the site support too.
Hi Dick,
Thanks for your reply.
Dick:
Quote: |
IEBGENER can be handy for a quick copy, but is practically never used for wholesale backup purposes.
|
please let me explain more. I am having a cataloged proc which has the steps to (a) back up the 'original input' file (b) Then with the help of the REXX and DFSORT programs in the next steps, the original file will be modified.
The 'original input' file name will be passed on the exec statement that calls the cataloged procedure. I would be having different JCLs which will have different file names that will be passed to this cataloged proc. So I am not taking a mass back up here. Sorry that i didnt provide complete info. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome.
Quote: |
Sorry that i didnt provide complete info. |
Not a problem - sometimes clarity takes a few iterations
Quote: |
Then with the help of the REXX and DFSORT programs in the next steps, the original file will be modified. |
For the multiple members in a PDS also? |
|
Back to top |
|
|
senjay
Active User
Joined: 10 May 2007 Posts: 147 Location: India
|
|
|
|
Hi Dick,
Quote: |
For the multiple members in a PDS also? |
No. The requirement is for only PS files and GDG files. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thanks for the clarification.
My mind must have been interleaving this and some other topic(s).
I hate when that happens. . .
d |
|
Back to top |
|
|
|