Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SAS program with Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
amit225394

New User


Joined: 07 Jan 2011
Posts: 3
Location: America

PostPosted: Fri Jan 07, 2011 8:26 pm    Post subject: SAS program with Mainframe
Reply with quote

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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jan 07, 2011 8:48 pm    Post subject:
Reply with quote

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 icon_eek.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 07, 2011 10:07 pm    Post subject:
Reply with quote

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

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Sat Jan 08, 2011 9:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us