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 

COBOL program calling SAS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bp1795
Beginner


Joined: 08 Apr 2008
Posts: 1
Topics: 2

PostPosted: Wed Aug 06, 2008 4:14 pm    Post subject: COBOL program calling SAS Reply with quote

How do I get the following SAS code into an object that a COBOL program can call - passing a DDNAME and SAS returning the DSNAME.

Code:
10 //JSTEP010 EXEC SAS                                   
11 //*                                                   
12 //INPTDATA DD DSN=ATEST.DISK.A,                       
13 //           DISP=SHR                                 
14 //RPTFILE  DD SYSOUT=*                               
15 //SASLOG   DD SYSOUT=*                               
16 //SYSIN    DD *                                       
17 DATA DATAINPT;                                       
18   INFILE INPTDATA JFCB=JFCB;                         
19   DSNAME = SUBSTR(JFCB,1,44);                         
20   PUT @10 '======>>> INPUT DATA SET NAME = ' DSNAME /;
21 RETURN;                                               
22 RUN;                                                 
23 ENDSAS;                                               
24 /*                 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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