IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Backup of GDG to a PS file - space parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 13, 2009 2:54 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 13, 2009 3:40 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 13, 2009 4:36 am
Reply with quote

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
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 13, 2009 5:03 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 13, 2009 6:51 am
Reply with quote

You're welcome.

Quote:
Sorry that i didnt provide complete info.
Not a problem - sometimes clarity takes a few iterations icon_smile.gif

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
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Thu Aug 13, 2009 6:59 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 13, 2009 7:47 am
Reply with quote

Thanks for the clarification.

My mind must have been interleaving this and some other topic(s).

I hate when that happens. . . icon_redface.gif

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top