Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Allocating space while creating GDG base

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ranjithmainframe

New User


Joined: 21 Jan 2008
Posts: 39
Location: chennai

PostPosted: Sat Oct 11, 2008 1:01 am    Post subject: Allocating space while creating GDG base
Reply with quote

Hi all,

Could you please let me know if it is possible to
specify/allocate the space while creating the GDG base itself.
SO that we will not get any space abend in case of getting a huge file to a new generation GDG dataset in a ftp process like as follows,
(for example)
ftp 11111.111.11
get textfile.txt APG.XX.GDG(+1)

Thanks,
Ranjith
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Sat Oct 11, 2008 1:11 am    Post subject: Reply to: Allocating space while creating GDG base
Reply with quote

No, of course not.

But, why on earth are you configuring your FTP like that? Why don't you define a DD statement in the JCL for the new GDG, with all of the necessary storage parameters, i.e.:

//FTPFILE DD DSN=APG.XX.GDG(+1),DISP=(,CATLG,DELETE),UNIT=...,SPACE=...

and then specify your get statement:

get textfile.txt //DD:FTPFILE

as outlined here in the section 4.2.4 ddname support in the z/OS V1R9.0 Comm Svr: IP User's Guide and Commands guide.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8124
Location: East Dubuque, Illinois, USA

PostPosted: Sat Oct 11, 2008 1:18 am    Post subject:
Reply with quote

As the manual says, creating a GDG base creates a catalog entry. Since you're not defining any datasets, there's no space parameter you could define with the GDG base. Use Kevin's approach to minimize space abends but there's no way to completely eliminate the possibility of space abends during the FTP -- the other end could have a file that is simply larger than your storage pool.
Back to top
View user's profile Send private message
ranjithmainframe

New User


Joined: 21 Jan 2008
Posts: 39
Location: chennai

PostPosted: Sat Oct 11, 2008 2:46 pm    Post subject: Reply to: Allocating space while creating GDG base
Reply with quote

There is a way on earth..

I might not be explained my problem in detail...

I have too many files in my ftp like as follows which would be difficult to
define each empty file seperately,

Code:

get EHAMFU_expor1.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor2.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor2.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor3.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor4.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor5.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor6.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor7.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor8.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor9.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor10.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor11.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor12.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor13.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor14.txt    'XXX.XXXX.XXXXXT(+1)'



the following is one of the way defining the file parmeters common to all generations in a ftp member..

Code:

locsite recfm=fb blksize=0 lrecl=1521 cyl pri=50 sec=25
get EHAMFU_expor1.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor2.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor2.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor3.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor4.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor5.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor6.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor7.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor8.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor9.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor10.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor11.txt    'XXX.XXXX.XXXXXT(+1)'
get EHAMFU_expor12.txt      'XXX.XXXX.XXXXXT(+1)'
get EHAMNB_expor13.txt      'XXX.XXXX.XXXXXT(+1)'
get EHANTHEM_expor14.txt    'XXX.XXXX.XXXXXT(+1)'



Thank you...

Ranjith
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Oct 11, 2008 4:09 pm    Post subject:
Reply with quote

Go chat with your storage people - use of the SMS DATACLAS ACS and construct can do that easy peasy.

However, having a JCL reference as to where the file is created does make problem determination a little easier. Maybe you could include something in your naming standards to alert anyone that the file is created by jobname/stepname/ftp.
Back to top
View user's profile Send private message
ranjithmainframe

New User


Joined: 21 Jan 2008
Posts: 39
Location: chennai

PostPosted: Tue Oct 14, 2008 12:24 am    Post subject: Reply to: Allocating space while creating GDG base
Reply with quote

oH!!.. you are right expat.. Thanks for your Information.

Thanks,
Ranjith
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 VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us