View previous topic :: View next topic |
Author |
Message |
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Thu Apr 10, 2003 12:20 pm Post subject: Empty file allocation |
|
|
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 |
|
|
Bithead Advanced
Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Thu Apr 10, 2003 1:22 pm Post subject: |
|
|
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 |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Apr 10, 2003 1:40 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Apr 10, 2003 2:19 pm Post subject: |
|
|
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 |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Apr 10, 2003 4:18 pm Post subject: |
|
|
Allocation now takes care of the EOF marker, so automatic allocation (eg: IEFBR14) should be fine. |
|
Back to top |
|
|
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Thu Apr 10, 2003 11:59 pm Post subject: |
|
|
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 |
|
|
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Fri Apr 11, 2003 12:10 am Post subject: |
|
|
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 |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Fri Apr 11, 2003 12:38 am Post subject: |
|
|
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 |
|
|
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Fri Apr 11, 2003 3:55 am Post subject: |
|
|
Ok !!!
Thanks Warp5. You gave me the correct idea. _________________ Rasprasad S |
|
Back to top |
|
|
|
|