Date: Fri, 12 Jul 1996 14:05:24 GMT
Reply-To: Sean Sullivan <mrfoo@CRIS.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Sean Sullivan <mrfoo@CRIS.COM>
Organization: Concentric Internet Services
Subject: Re: MVS JCL to create dataset
Hays McLean <H.MCLEAN@PLUM.FRUIT.COM> wrote:
>People who are experienced with JCL for running SAS data steps:
>
>I am beginning to learn to run SAS on MVS after several years of using it on
>CMS and the JCL is new to me. I am submitting the jobs from CMS currently and
>I am having to add JCL around the SAS code.
>
>The systems programmer that has helped me set up the JCL is not too familiar
>with SAS dataset files, so he was a little unsure of the JCL to use to
>allocate. The following is the JCL that we have set up and it is apparently
>working okay. The SAS program that this sets up reads a flat file that is
>over 5 meg in size and creates a SAS dataset that includes all of the records
>and fields in the flat file (so I assume the dataset is over 5 meg as well):
>
>//SAS25S JOB (SY,T,R),'HAYS MCLEAN',CLASS=T,MSGCLASS=J
>//SASMVS EXEC SAS,WTR1='Q',WTR2='(W,,1WID)',WTR3='*',RGN=6M
>//SASLOG DD SYSOUT=*
>//SASLIST DD SYSOUT=*
>//SYSPRINT DD SYSOUT=*
>//STYLMAS DD DSN=SAS.HAYS.STYL.MASTR,DISP=(NEW,CATLG),
>// VOL=SER=MVSSP3,SPACE=(TRK,(150,15),RLSE),UNIT=DISK,
>// DCB=(RECFM=U,LRECL=32756,BLKSIZE=32760,DSORG=DA)
>//SYSIN DD *
Looks good to me, although I'd keep my eye on your SPACE requirements.
In MVS, if your using ISPF, you can go to option 3.4 and look up your
output put dataset, put an S or I next to it and see what is being
used versus allocated and adjust accordingly. As for the RLSE option,
I usually don't like to release space with SAS datasets. Our Storage
people put in an exit that did this regardless and caused me all kinds
of headaches. I seems that SAS will allocate the file, and sometimes
close and open it before writing to it (depends on what your doing in
the code). When it reopens it, since nothing was written to the file,
all the space was released and my job would blow up with insufficient
space. Drove me batty trying to figure that one out.
Other then that, you should be about to use this same JCL for most SAS
batch jobs on MVS (changing the DSN and space parms of course).
>
>Does any of this JCL seem to be unreasonable? Any additions that should be
>made?
>
>Thanks.
>
>--Hays McLean
***************************************
>> All opinions are my own and may not
>> reflect the opinions of my employer
***************************************
Sean P. Sullivan
MICS Administrator
Key Services Corporation
NY-31-22-0303
22 Corp Woods Blvd
Albany, NY 12211 USA
1-518-391-6009
s_sullivan@keycorp.e-mail.com
mrfoo@cris.com
******************************************
|