MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Empty file allocation

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Thu Apr 10, 2003 12:20 pm    Post subject: Empty file allocation Reply with quote

I created an empty file with the following step:


Code:
//STEP01   EXEC PGM=SORT                                     
//SYSOUT   DD SYSOUT=*                                       
//SYSPRINT DD SYSOUT=*                                       
//SORTIN   DD DUMMY,DCB=(RECFM=FB,LRECL=25)     
//SORTOUT  DD DSN=OUTPUT FILE,               
//         DISP=(NEW,CATLG,DELETE),                         
//         AVGREC=K,                                         
//         SPACE=(CYL,(300,450),RLSE),                       
//         DCB=(RECFM=FB,LRECL=25)             
//SYSIN    *
SORT FIELDS=COPY
//*                                                         


I had specified the space as CYLS - 300.450 .
But what the dataset has been alloacted is 1,450.
Now can i load a file of space - 250,450 cyls into this file.
Please explain...
Thanks...
_________________
Rasprasad S
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Thu Apr 10, 2003 1:22 pm    Post subject: Reply with quote

Why would you use SORT to allocate an empty file when IEFBR14 will do it?

Why would you want a file of this size with nothing in it?
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Apr 10, 2003 1:40 pm    Post subject: Reply with quote

Bithead,
Allocating with IEFBR14 has it's drawbacks since it does not OPEN/CLOSE the file to create a valid EOF pointers.

rasprasads,
Are you aware of the JCL subparameter RLSE for allocations? Read about it in the the Fine JCL manuals under the SPACE paramter.

Bill
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Apr 10, 2003 2:19 pm    Post subject: Reply with quote

Rasprasad,

'K' indicates that the primary and secondary space quantity specified by the SPACE= parameter represent the number of records to allocate space for, in K (1,024 record multiples).

In your examples, a primary quantity of 300K (307,200) records, and a secondary quantity of 450K (460,800) records.

You will have 7050 cylinders(300+15*450) with an allocation of SPACE=(CYL,(300,450),RLSE) which will allow you to copy approximately 60,000,000(60 million records)

Check the following thread in JCL forum where it explains the space calculation for the datasets based on the LRECL and volume of records.

http://www.mvsforums.com/helpboards/viewtopic.php?t=28

Personally I would direcly copy to the target dataset instead of creating an empty dataset and then copying the data.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Apr 10, 2003 4:18 pm    Post subject: Reply with quote

Allocation now takes care of the EOF marker, so automatic allocation (eg: IEFBR14) should be fine.
Back to top
View user's profile Send private message Visit poster's website
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Thu Apr 10, 2003 11:59 pm    Post subject: Reply with quote

The file i am going to create will be loaded by the users. So i have created an empty file and just wanted to know about the no.of records that can be loaded to an empty file.

Kolusu thanks for your valuable info.....
_________________
Rasprasad S
Back to top
View user's profile Send private message
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Fri Apr 11, 2003 12:10 am    Post subject: Reply with quote

Kolusu,


I have also this doubt...
Quote:

You will have 7050 cylinders(300+15*450) with an allocation of SPACE=(CYL,(300,450),RLSE)

I do not get this.Why have you multiplied the secondary cyls with 15. I think the size would be (300+450).

Waiting for clarifications...
_________________
Rasprasad S
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Fri Apr 11, 2003 12:38 am    Post subject: Reply with quote

Rasprasad, he multiplied the secondary value by the max. amount of extents (a total of 16, that means 15 secondary extents) to show the max size of the dataset. After data has been put into it and the dataset is closed the RLSE will release any unused space.
Back to top
View user's profile Send private message Visit poster's website
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Fri Apr 11, 2003 3:55 am    Post subject: Reply with quote

Ok !!!
Thanks Warp5. You gave me the correct idea.
_________________
Rasprasad S
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group