Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Retreiving data...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 4080 of 4115
Post > Topic >>

Retreiving dataset allocation from mainframe COBOL program

by "Grzegorz Mazur" <news2@[EMAIL PROTECTED] > Apr 7, 2008 at 09:42 AM

Hi All!

This is more of a mainframe question than a COBOL one, but
nevertherless...

I am looking for a way to get information on dataset allocation (primary
and 
secondary space) from a COBOL batch program. Basically what I am doing is 
generating a JCL from this program, that will allocate a dataset with very

similar space allocation to a model dataset. To be correct on the PRI and 
SEC allocation, I need the exact numbers - guessing them doesn't seem
right 
:) This is a part of a larger backup manipulation process, so the amount
of 
datasets is large.

Has anyone got a clue how to do it? I was already considering IDCAMS and 
NAVIQUEST - the first one cannot be called from COBOL (at least not in a 
programmer-friendly way), the second one is also batch driven. In both
cases 
report analysis is difficult... I am sure some kind of a tool must exist
:(

BTW - no, I cannot use 'LIKE' in the space allocation parameters, as LIKE 
has some serious limitations (i.e. it does not really allocate the same 
space). "Unless you explicitly code the SPACE parameter for the new data 
set, the system determines the space to be allocated for the new data set
by 
adding up the space allocated in the first three extents of the model data

set. Therefore, the space allocated for the new data set will generally
not 
match the space that was specified for the model data set." (IBM JCL 
manual).

Please help! ;)

Thanks in advance,
Greg




 8 Posts in Topic:
Retreiving dataset allocation from mainframe COBOL program
"Grzegorz Mazur"  2008-04-07 09:42:19 
Re: Retreiving dataset allocation from mainframe COBOL program
"Michael Mattias&quo  2008-04-07 07:59:11 
Re: Retreiving dataset allocation from mainframe COBOL program
"Grzegorz Mazur"  2008-04-07 15:28:56 
Re: Retreiving dataset allocation from mainframe COBOL program
"Charles Hottel"  2008-04-07 20:40:08 
Re: Retreiving dataset allocation from mainframe COBOL program
Binyamin Dissen <posti  2008-04-07 17:09:22 
Re: Retreiving dataset allocation from mainframe COBOL program
Alistair <alistair@[EM  2008-04-07 13:01:07 
Re: Retreiving dataset allocation from mainframe COBOL program
"William M. Klein&qu  2008-04-08 04:32:30 
Re: Retreiving dataset allocation from mainframe COBOL program
Alistair <alistair@[EM  2008-04-09 13:48:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 2:35:40 CDT 2008.