Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Backup of GDG to a PS file - space parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Backup of GDG to a PS file - space parameter
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Thu Aug 13, 2009 3:40 am    Post subject:
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

Site Director


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

PostPosted: Thu Aug 13, 2009 4:36 am    Post subject:
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    Post subject: Reply to: Backup of GDG to a PS file - space parameter
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

Site Director


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

PostPosted: Thu Aug 13, 2009 6:51 am    Post subject:
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    Post subject: Reply to: Backup of GDG to a PS file - space parameter
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

Site Director


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

PostPosted: Thu Aug 13, 2009 7:47 am    Post subject: Reply to: Backup of GDG to a PS file - space parameter
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us