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 

SPACE parameter

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
lal
Beginner


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Wed Dec 24, 2003 2:00 am    Post subject: SPACE parameter Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Dec 24, 2003 7:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Dec 25, 2003 11:27 pm    Post subject: Reply with quote

I have a question - Is (new,delete,delete) is same as allocating a temporary dataset, I mean from efficiency point.

Diba.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Dec 26, 2003 12:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
lal
Beginner


Joined: 21 Oct 2003
Posts: 70
Topics: 25

PostPosted: Thu Jan 01, 2004 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Jan 01, 2004 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Fri Jan 02, 2004 1:38 am    Post subject: Reply with quote

Hi Diba,

What do you mean by "i/o process"?

Regards, Jack.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Sun Jan 04, 2004 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Jan 05, 2004 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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