AnsweredAssumed Answered

Traversing record element using substring

Question asked by neliso on Nov 26, 2013
Latest reply on Nov 27, 2013 by Gary_Cherlet

Hi, I am getting a compile error in the code that tryes to traverse an element with pre loaded values. The error is as follows

2000          END.                                                          

        <E>    (SUB1)                                                      

2100          MOVE 1 TO SUB1.                                              

                            $                                              

E>   DC164076 ILLEGAL DATANAME PARSED.  STMT FLUSHED.                      

E>   DC161002 DESTINATION (2ND OPERAND) DATANAME NOT FOUND. STMT FLUSHED.  

2200          WHILE SUB1 NE 33 REPEAT.                                     

                         $           $                                      

E>   DC165079 ILLEGAL DATANAME PARSED.  STMT FLUSHED.                      

<E>   DC167001 EXPECTED CONDITION NOT FOUND. STMT FLUSHED.              

         <E>    (SUB1)                                                   

 2300            MOVE SUBSTR(KEY-TABLE,SUB1,1) TO INST-TIPE-KODE-2413.  

                                            $                        $  

<E>   DC164076 ILLEGAL DATANAME PARSED.  STMT FLUSHED.                  

<E>   DC164004 SUBSCRIPT IS IN ERROR.                                   

<E>   DC161001 SOURCE DATANAME, EXPR, OR NUMBER NOT FOUND. STMT FLUSHED.

         <E>    (SUB1)        Please help. Thanks, Neliso.                                          

Outcomes