View previous topic :: View next topic |
Author |
Message |
lal Beginner
Joined: 21 Oct 2003 Posts: 70 Topics: 25
|
Posted: Wed Dec 24, 2003 2:00 am Post subject: SPACE parameter |
|
|
Hi Friends,
I have a following JCL in which the dataset though it is old and going to deleted is defined with SPACE=(TRK,0). Could anybody tell me what is the significance of the space parameter here ?
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=A.B.C,
// DISP=(MOD,DELETE,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,0)
Thanx in advance.. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Dec 24, 2003 7:12 am Post subject: |
|
|
lal,
Take a close look at the DISP parameter. It is defined as (MOD,DELETE,DELETE) . The disp = mod tries to append to the dataset if already exists or it will try to create the dataset. In the event of creating the dataset the space parameter is required.Since this step is intented to delete the dataset they haven't allocated bigger space parameters.
Hope this helps...
cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu Dec 25, 2003 11:27 pm Post subject: |
|
|
I have a question - Is (new,delete,delete) is same as allocating a temporary dataset, I mean from efficiency point.
Diba. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Dec 26, 2003 12:56 pm Post subject: |
|
|
Dibakar,
A temporary dataset is usually created to pass on the data to next step. The disposition is (new,pass,delete).
Disp=(new,delete,delete) is the default disposition if the disp parm is not specified. It is used for sortwork datasets where the sort program will use these temp datasets to sort the input data.Upon sorting these temp datasets are useless.On contrary we can allocate temporary datasets to pass info to the next step.
You really cannot compare these definitions from efficiency stand point.
Hope this helps...
cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
lal Beginner
Joined: 21 Oct 2003 Posts: 70 Topics: 25
|
Posted: Thu Jan 01, 2004 9:56 pm Post subject: |
|
|
Hi Kolusu,
Thanx for ur answer. Well I wanted to know what do u mean by
SPACE=(TRK,0)...does it mean no space or some amount of space??? |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu Jan 01, 2004 11:15 pm Post subject: |
|
|
Hi Kolusu,
I think temporary datasets don't go thru i/o process and was wondering if same is true for (new,delete,delete).
Thanks,
Diba |
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Fri Jan 02, 2004 1:38 am Post subject: |
|
|
Hi Diba,
What do you mean by "i/o process"?
Regards, Jack. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sun Jan 04, 2004 12:00 pm Post subject: |
|
|
lal,
The parameter space is just used to allocate zero space and to avoid the job from failing with a JCL error.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon Jan 05, 2004 6:28 am Post subject: |
|
|
Okay, I was getting confused with temporary datasets on unit=VIO. Sometime ago I read, in this forum, that accessing records on a temp dataset on UNIT=VIO is faster because ... because ... because, well it had something to do with i/o (or not doing i/o).
I don't know what it was but I understood that in such cases the records are as readily available as a variable in a program is.
Diba. |
|
Back to top |
|
 |
|
|