BookmarkSubscribeRSS Feed
saroj
Calcite | Level 5


Hello All,

I am trying to run the below code on SAS 9.2 for Z/OS i.e mainframe  and SAS is throwing up an error.  anyway i can resolve this ?

OPTIONS ERRORABEND ;                           

LIBNAME DB2DB   DB2 SSID=DB39 SCHEMA=ADRPMMT ; 

                                               

DATA  LOADFL ;                                 

INFILE  LOADFL ;                               

  INPUT  @001  DEALER_NUMBER    $CHAR6.        

         @008  FILL_GOALX       PD3.1          

         @015  FILL_GOAL_YEAR   $CHAR04.       

         ;                                     

RUN;                                           

DATA DB2DB.DEALER_MGMT_FILL_GOAL;              

   MODIFY  DB2DB.DEALER_MGMT_FILL_GOAL         

           LOADFL ;                            

     BY DEALER_NUMBER FILL_GOAL_YEAR ;         

  FILL_GOAL = FILL_GOALX ;                    

    IF _IORC_ = %SYSRC(_SOK) THEN REPLACE ;

    ELSE IF _IORC_ = %SYSRC(_DSENMR) THEN  

      DO;                                  

          _ERROR_ = 0 ;                    

          _IORC_  = 0 ;                    

          OUTPUT ;                         

      END;                                 

RUN;                              

sas error:

ERROR: File DB2DB.DEALER_MGMT_FILL_GOAL.DATA is sequential.This task requires reading observations in a random order, but the engine allows only sequential access.

NOTE: The SAS System stopped processing this step because of errors.      

4 REPLIES 4
Amir
PROC Star

Hi,

Does the following apply:

http://support.sas.com/kb/6/720.html

If so, you might just need an extra option on the libname statement.

Regards,

Amir.

saroj
Calcite | Level 5

That did solve the issue !! Smiley Happy  thanks a lot Amir.

yugal
Calcite | Level 5

I am also facing same issue. Can you please provide me solution as SAS Support page is not available now.

richardbalajSAS
SAS Employee

it's this option for libname statement:

REREAD_EXPOSURE = YES

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 3125 views
  • 0 likes
  • 4 in conversation