BookmarkSubscribeRSS Feed
ninachang
Calcite | Level 5

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;                         

2 REPLIES 2
Peter_C
Rhodochrosite | Level 12

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

good luck

peter

Cynthia_sas
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 996 views
  • 0 likes
  • 3 in conversation