bp1795 Beginner
Joined: 08 Apr 2008 Posts: 1 Topics: 2
|
Posted: Wed Aug 06, 2008 4:14 pm Post subject: COBOL program calling SAS |
|
|
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 /* |
|
|