Programming the statistical procedures from SAS

PROC REG with PLOT statement

Reply
Contributor
Posts: 32

PROC REG with PLOT statement

I am using PROC REG with a PLOT statement to create a graph file under z/os V1.12.  SAS Version is 9.1.3, SP 4

Code:

/* Remove an existing copy */

filename gifout "<TSO id>.BALT.STATS1.GIF" DISP=(MOD,DELETE,DELETE);

filename gifout "<TSO id>.BALT.STATS1.GIF" DISP=(NEW,CATLG,DELETE);

goptions reset=all device=gif733 gsfname=gifout htitle=1.5 htext=1;

/* Bogus dataset for example */

data a;

   do i = 1 to 100;

      t = i * 50;

      output;

   end;

run;

proc reg data=a;

   model i=t;

   plot predicted.*residual.; /* Left name= option off for now */

quit;

run;

The job is submitted in batch.

The bulk of the output from PROC REG is being trapped by an ODS HTML statement correctly.

Instead of the file referenced in gifout being created, SAS is creating a pds

named <TSO id>.SASGRAPH with member name REG.  I have downloaded the member

to my PC and it looks ok when opened in Windows as a .GIF file. The file listed above under

"gifout" is created on the mainframe but is empty.  

The SASLOG shows the following:

NOTE: xxx records written to <TSO id>.SASGRAPH(REG)

The oddball thing is if I submit the code above in interactive SAS, the flat file referenced

under "gifout" is created as expected and no <TSO id>.SASGRAPH pds is created. 

I don't see anything in the expanded JCL that referrs to <TSO id>.SASGRAPH.  Any ideas greatly

appreciated.  Thanks.

Ask a Question
Discussion stats
  • 0 replies
  • 126 views
  • 0 likes
  • 1 in conversation