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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 4 replies
  • 2266 views
  • 0 likes
  • 4 in conversation