DATA Step, Macro, Functions and more

Execute an external program and got error

Reply
New Contributor
Posts: 3

Execute an external program and got error

Hi,

I originally ran SARBCH in JCL, but have to move it to the datastep.  I use "PROC" to execute this external program SARBCH and llike to have the output written to the REPORT file, but got an RC=290816.  Does anyone know what does the return code mean or how to fix it?  Thanks.

FILENAME SYSPRINT "&SYSUID..SARBCH.SYSPRINT"              

               DISP=(NEW,CATLG,DELETE) UNIT=3390          

               SPACE=(CYL,(1,2),RLSE) RECFM=FB  LRECL=121;

                                                          

FILENAME REPORT   "&SYSUID..SARBCH.REPORT"               

               DISP=(NEW,CATLG,DELETE) UNIT=3390          

               SPACE=(CYL,(1,2),RLSE) RECFM=FB LRECL=120 ;

                                                          

DATA NULL;                                                

  FILE SYSIN;                                             

  LENGTH LINE1 $ 80;                                      

  LINE1 = '/LIST  ID=LD2OXXX GEN=*';                     

  PUT @1 LINE1 $CHAR80.;         

RUN;                         

                             

OPTIONS PARM='SAR.SARPROD3';   /* parameters to SARBCH */

                             

PROC SARBCH;                 

RUN;                         

Valued Guide
Posts: 2,175

Execute an external program and got error

sounds like a number / return code from SARBCH. It's documentation should reveal the problem.

good luck

peter

SAS Super FREQ
Posts: 8,743

Execute an external program and got error

Are you using a CA (Computer Associates) suite of programs for job scheduling or job handling on the mainframe??? (something like CA-View or CA-Deliver?) Perhaps the CA or scheduling folks at your site can help you out.

cynthia

Ask a Question
Discussion stats
  • 2 replies
  • 339 views
  • 0 likes
  • 3 in conversation