Page 2 of 2

Re: what is the purpose of proclib dd statement

PostPosted: Thu Aug 13, 2009 12:33 pm
by GuyC
dick scherrer wrote:Also, most systems i've supported have "sort control" statements in one or more PDS that is named as a DD in the job.


a pds or a member of a pds ?

statements like
//xxx dd disp=shr,dsn=some.pds.parm(AAA)
or
//xxx dd disp=shr,dsn=some.pds.parm(AAA1)
//      dd disp=shr,dsn=some.pds.parm(AAA2)

I've seen everywhere (they are handled just like any sequential dataset)
but
//xxx dd disp=shr,dsn=some.pds.parm
or
//proclib dd dsp=shr,dsn=some.pds.proclib

where the program itself decides which member(s) to use ? Those programs usually have calls to some "dynamic allocation" routines or services.
I think we're talking about different things.

Re: what is the purpose of proclib dd statement

PostPosted: Fri Aug 14, 2009 1:40 am
by dick scherrer
Hello,

Those programs usually have calls to some "dynamic allocation" routines or services.
Yup, sure do :)

My examples are of the simple variety where one or more members is used as sequential input to "something". Kinda as a reply to:
But I'd like to see a batch program that has a PDS in the DD-list and accesses members without "doing some kind of dynamic allocation"