     **
     **  Program . . : CBX3022C
     **  Description : Work with WLC Product Entries - UIM Cond Program
     **  Author  . . : Carsten Flensburg
     **
     **
     **
     **  Compile options:
     **    CrtRpgMod  Module( CBX3022C )
     **               DbgView( *LIST )
     **
     **    CrtPgm     Pgm( CBX3022C )
     **               Module( CBX3022C )
     **               ActGrp( *CALLER )
     **
     **
     **-- Control specification:  --------------------------------------------**
     H Option( *SrcStmt )

     **-- System information:
     D PgmSts         SDs                  Qualified
     D  PgmNam           *Proc
     D  CurJob                       10a   Overlay( PgmSts: 244 )
     D  UsrPrf                       10a   Overlay( PgmSts: 254 )
     D  JobNbr                        6a   Overlay( PgmSts: 264 )
     D  CurUsr                       10a   Overlay( PgmSts: 358 )

     **-- API error data structure:
     D ERRC0100        Ds                  Qualified
     D  BytPrv                       10i 0 Inz( %Size( ERRC0100 ))
     D  BytAvl                       10i 0
     D  MsgId                         7a
     D                                1a
     D  MsgDta                      512a

     **-- Global constants:
     D TYP_COND        c                   12
     **-- UIM variables:
     D UIM             Ds                  Qualified
     D  EntHdl                        4a

     **-- Product information input structure:
     D PRDI0100        Ds                  Qualified
     D  PrdId                         7a   Inz( '*OPSYS' )
     D  RlsLvl                        6a   Inz( '*CUR' )
     D  PrdOpt                        4a   Inz( '0000' )
     D  LoadId                       10a   Inz( '*CODE' )
     **-- Product information output structure:
     D PRDR0100        Ds                  Qualified
     D  BytPrv                       10i 0
     D  BytRtn                       10i 0
     D                               10i 0
     D  PrdId                         7a
     D  Release                       6a
     D  PrdOpt                        4a
     D  LodId                         4a
     D  LodTyp                       10a
     D  SymLodStt                    10a
     D  LodErrInd                    10a
     D  LodStt                        2a
     D  SupFlg                        1a
     D  RegTyp                        2a
     D  RegVal                       14a
     D                                2a
     D  OfsAddInf                    10i 0
     D  PriLodId                      4a
     D  MinTrgRel                     6a
     D  MinVrmBas                     6a
     D  RqmBasOpt                     1a
     D  Level                         3a

     **-- UIM exit program interfaces:
     **-- Parm interface:
     D UimExit         Ds                  Qualified
     D  StcLvl                       10i 0
     D                                8a
     D  TypCall                      10i 0
     D  AppHdl                        8a
     D  ObjNam                       10a
     D  LibNam                       10a
     D  ObjTyp                       10a
     D  HlpMod                       32a
     D  PnlNam                       10a
     D  CndNam                       10a
     D  RtnCod                        1a

     **-- Retrieve product information:
     D RtvPrdInf       Pr                  ExtPgm( 'QSZRTVPR' )
     D  Dta                                Like( PRDR0100 )
     D  DtaLen                       10i 0 Const
     D  FmtNam                        8a   Const
     D  PrdInf                       27a   Const
     D  Error                      1024a         Options( *VarSize )

     **-- Entry parameters:
     D CBX3022C        Pr
     D  PxUimExit                          LikeDs( UimExit )
     **
     D CBX3022C        Pi
     D  PxUimExit                          LikeDs( UimExit )

      /Free

        UimExit.RtnCod = '0';

        If  PxUimExit.TypCall = TYP_COND;

          RtvPrdInf( PRDR0100
                   : %Size( PRDR0100 )
                   : 'PRDR0100'
                   : PRDI0100
                   : ERRC0100
                   );

          If  ERRC0100.BytAvl = *Zero;

            If  PRDR0100.Release >= 'V7R3M0';
              PxUimExit.RtnCod = '1';
            EndIf;
          EndIf;
        EndIf;


        Return;

      /End-Free
