View previous topic :: View next topic
|
Author |
Message |
amit225394
New User
Joined: 07 Jan 2011 Posts: 3 Location: America
|
|
|
|
Hi
I worked in SAS approximately 4 years in windows environment. Now I want to use SAS with mainframe. But I have no idea of mainframe. I just want to execute simple sas code in mainframe to get an idea.
I used below code:
Code: |
//STEP EXEC SAS
//OUTFILE DD DSN=E147.TEST.PVS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1000,100)),DCB=(RECFM=FB,LRECL=300,BLKSIZE=0)
//SYSIN DD *
DATA OUTFILE.OUT;
X = 5;
Y = 10;
RUN; |
JCL is working fine. I write very simple sas datastep. After executing i am getting error "ERROR: Library OUTFILE is not in a valid format for access method SASE7.". Please help me how I can run the sas code in mainframe. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What is OUTFILE supposed to be, a flat file or SAS format dataset.
If it's a SAS dataset use RECM=FS,LRECL=27998,BLKSIZE=27998
Errrrrrrrrrrrrr, isn't that rather a large space allocarion for one observation |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
I suspect you are not the first in your organization to run SAS on the mainframe.
Suggest you look at some process that already works and talk with whoever runs/supports this working process - then change your job accordingly.
As Expat mentions, that does appear to be a rather large space allocation. . . |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Some installations have other JCL parameters for saslibs; that may or may not also set the LRECL for you.
Check on DATACLAS or MGMTCLAS.
As noted, check existing code to clone. |
|
Back to top |
|
|
|