Ü    OPNID in DCLF

 

·         Open id is an identifier for any opened file in the CL program.

 

 

DCLF       FILE(AMIT/ACCOUNT) OPNID(ID1)

QUALIFIED FILE NAME - AMIT/ACCOUNT

RECORD FORMAT NAME - REC1

 

 

When we compile the program, we can see in the spool file that the fields get pre-fixed with the ID name. Hence, each file’s that we declare in CL is recognized by the unique open-id.

 

                                       


              CL VARIABLE               TYPE     LENGTH     PRECISION     TEXT
               &ID1_ORG                 *DEC        3           0         ORG 
               &ID1_ACC                 *CHAR      12                     ACC 
               &ID1_CCY                 *CHAR       3                     CURR
               &ID1_OPENDT              *DEC        8           0         OPEN
               &ID1_PARTY               *CHAR      12                     PART
               &ID1_ACCSTS              *DEC        1           0         A/C 
               &ID1_ENTSTS              *DEC        1           0         ENT 
               &ID1_VERSTS              *DEC        1           0         VER 
               &ID1_AUTSTS              *DEC        1           0         AUT 
               &ID1_RECSTS              *DEC        1           0         REC 
               &ID1_TIMESTP             *CHAR      26                     TIME

            

 





User Comments:





Copyright © Go4as400.com, 2013-2017. Copyright notice