midrange.com code scratchpad
Name:
Jerry C. Adams
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
01/29/2015 02:39:03 am
IP:
Logged
Description:
Added formats DTU020E, DTU020ECTL, and DTU020EFK
Code:
  1.      H COPYRIGHT('Discount Tobacco, Inc. 2015')
  2.      H/copy $header
  3.       //*******************************************************************************
  4.       // Written By   :?Jerry C. Adams                           ?                     **
  5.       // Date Written :?28 February 2012          ?                                    **
  6.       // Project No   :?0135                      ?                                    **
  7.       // Program Name :?DTU020                                   ?                     **
  8.       // Program Desc : Cigarette Inventory Master Maintenance                       **
  9.       //*******************************************************************************
  10.       // Revised By :?Jerry C. Adams ?Revised Date : 18 September 2012                 **
  11.       // Project No :?0194 ?                                                           **
  12.       // Reason     : Provide the means by which a master record can be deleted.     **
  13.       //*******************************************************************************
  14.       // Revised By :?Jerry C. Adams ?Revised Date : 9 January 2015                    **
  15.       // Project No :?0254 ?                                                           **
  16.       // Reason     : Provide the means by which multiple price sets can be          **
  17.       //              maintained.                                                    **
  18.       //*******************************************************************************
  19.  
  20.       //********************
  21.       // FILE DEFINITIONS **
  22.       //********************
  23.  
  24.      FDTU020D   CF   E             WORKSTN SFile(DTU020A:rrna)
  25.      F                                     SFile(DTU020E:rrne)
  26.      FSTRCIG    UF A E           K DISK
  27. 0254 FSTRSETID  IF   E           K DISK
  28.  
  29.       //*******************
  30.       // DATA STRUCTURES **
  31.       //*******************
  32.  
  33.       // Named Indicators
  34.  
  35.      D P_Indicators    S               *   INZ(%Addr(*IN))
  36.      D  Indicators     DS                  Based(P_Indicators)
  37.      D   SF_Display                        LIKE(*IN) Overlay(Indicators:33)
  38.      D   SF_Clear                          LIKE(*IN) Overlay(Indicators:31)
  39.      D   TypeError                         LIKE(*IN) Overlay(Indicators:51)
  40.      D   CatError                          LIKE(*IN) Overlay(Indicators:52)
  41.      D   CtnError                          LIKE(*IN) Overlay(Indicators:53)
  42.      D   PckError                          LIKE(*IN) Overlay(Indicators:54)
  43.      D   SF_End                            LIKE(*IN) Overlay(Indicators:90)
  44.      D   Help                              LIKE(*IN) Overlay(Indicators:130)    F1
  45.      D   EOJ                               LIKE(*IN) Overlay(Indicators:132)    F3
  46.      D   AddRecord                         LIKE(*IN) Overlay(Indicators:135)    F6
  47.      D   Cancel                            LIKE(*IN) Overlay(Indicators:141)    F12
  48.      D   DeleteIt                          LIKE(*IN) Overlay(Indicators:152)    F23
  49.  
  50.      D/Define MsgD
  51.      D/Copy $Msg
  52.  
  53.       //*******************
  54.       // FIELD NAMES     **
  55.       //*******************
  56.  
  57.      D #Error          S               N
  58.      D @Member         S             10a
  59.      D #Limit          S                   Like(rrna)
  60.      D #LimitE         S                   Like(rrne)
  61.      D pType           S                   Like(sctype)
  62.      D pCategory       S                   Like(sccategory)
  63. 0254 D pSet            S                   Like(scset)
  64.      D X               S                   Like(rrna)
  65.      D ErrorTest       S               N
  66.      D #First          S               N
  67.      D rrna_error      S                   Like(rrna)
  68.      D SetFound        S               N
  69.  
  70.       //*************
  71.       // ProtoTypes *
  72.       //*************
  73.  
  74.      D $BuildList      PR
  75. 0254 D $BuildSet       PR
  76. 0254 D $Select         PR
  77.  
  78. 0254 D DTU024          PR                  EXTPGM('DTU024')
  79.      D/copy qproto,bwchelp                                                      *In-line help
  80.  
  81.       //*****************
  82.       // ---CONTROL--- **
  83.       //*****************
  84.  
  85.      C     FileKey       KLIST
  86. 0254 C                   KFLD                    pSet
  87.      C                   KFLD                    pType
  88.      C                   KFLD                    pCategory
  89.  
  90.       /FREE
  91.  
  92.        EXSR $INIT;
  93.        EXSR $MAIN;
  94.        EXSR $EOJ;
  95.  
  96.        //****************************************************************
  97.        // SUBROUTINE - $INIT                                           **
  98.        //    PURPOSE - Program Initialization                          **
  99.        //****************************************************************
  100.  
  101.        BEGSR $INIT;
  102.  
  103.          EXSR  $MINIT;
  104.  
  105.        ENDSR;
  106.  
  107.        //****************************************************************
  108.        // SUBROUTINE - $MAIN                                           **
  109.        //    PURPOSE - Main Program Logic                              **
  110.        //****************************************************************
  111.  
  112.        BEGSR $MAIN;
  113.  
  114.          DOW not eoj;
  115.  
  116.            $BuildSet();
  117.  
  118.            WRITE DTU020EFK;
  119.            EXFMT DTU020ECTL;
  120.  
  121.            IF  AddRecord;
  122.              DTU024();
  123.              ITER;
  124.            ENDIF;
  125.  
  126.            $Select();
  127.            IF  SetFound;
  128.              EXSR  $MainB;
  129.            ENDIF;
  130.  
  131.          ENDDO;
  132.  
  133.        ENDSR;
  134.  
  135.        //****************************************************************
  136.        // SUBROUTINE - $MAINB                                          **
  137.        //    PURPOSE - Process Price List.                             **
  138.        //****************************************************************
  139.  
  140.        BEGSR $MAINB;
  141.  
  142.          DOW not eoj
  143.          AND not cancel;
  144.  
  145.            WRITE MSGSFLB;
  146.            IF  not #error;
  147.              $BuildList();
  148.            ELSE;
  149.              rrna  = rrna_error;
  150.            ENDIF;
  151.            WRITE DTU020AFK;
  152.            EXFMT DTU020ACTL;
  153.            EXSR  $CMsg;
  154.  
  155.            IF  eoj;
  156.              LEAVE;
  157.            ENDIF;
  158.  
  159.            IF  AddRecord;
  160.              EXSR  sub002;
  161.              IF  eoj;
  162.                LEAVE;
  163.              ENDIF;
  164.              ITER;
  165.            ENDIF;
  166.  
  167.            IF  Help;
  168.              @member = 'DTU020A';
  169.              bwchelp(@member);
  170.              ITER;
  171.            ENDIF;
  172.  
  173.            EXSR  $EditA;
  174.            IF  #error;
  175.              ITER;
  176.            ENDIF;
  177.  
  178.            EXSR $PostList;
  179.  
  180.          ENDDO;
  181.  
  182.        ENDSR;
  183.  
  184.        //****************************************************************
  185.        // SUBROUTINE - SUB002                                          **
  186.        //    PURPOSE - Edit and process new categories.                **
  187.        //****************************************************************
  188.  
  189.        BEGSR sub002;
  190.  
  191.          cattype   = *Blanks;
  192.          category  = *Blanks;
  193.          carton    = *Zeros;
  194.          pack      = *Zeros;
  195.  
  196.          DOW not eoj
  197.          AND not cancel;
  198.  
  199.            WRITE MSGSFLB;
  200.            EXFMT DTU020B;
  201.            EXSR  $CMsg;
  202.  
  203.            IF  Help;
  204.              @member = 'DTU020B';
  205.              bwchelp(@member);
  206.              ITER;
  207.            ENDIF;
  208.  
  209.            IF  eoj
  210.            OR  cancel;
  211.              LEAVE;
  212.            ENDIF;
  213.  
  214.            EXSR  $EditB;
  215.            IF  #error;
  216.              ITER;
  217.            ENDIF;
  218.  
  219. 0254       scset       = @set;
  220.            sctype      = cattype;
  221.            sccategory  = category;
  222.            scctnretl   = carton;
  223.            scpackretl  = pack;
  224.  
  225.            WRITE STRCIGR;
  226.  
  227.            cattype   = *Blanks;
  228.            category  = *Blanks;
  229.            carton    = *Zeros;
  230.            pack      = *Zeros;
  231.  
  232.          ENDDO;
  233.  
  234.        ENDSR;
  235.  
  236.        //****************************************************************
  237.        // SUBROUTINE - $EditA                                          **
  238.        //    PURPOSE - Validate the lines on Panel 'A'.                **
  239.        //****************************************************************
  240.  
  241.        BEGSR $EditA;
  242.  
  243.          #error      = *Off;
  244.          #First      = *On;
  245.          rrna_error  = *Zeros;
  246.  
  247.          IF  #limit  > *Zeros;
  248.            FOR x = 1 to  #limit;
  249.  
  250.              CHAIN x DTU020A;
  251.              IF  %found();
  252.                errorTest = *Off;
  253.                catError  = *Off;
  254.                TypeError = *Off;
  255.                ctnError  = *Off;
  256.                pckError  = *Off;
  257.                IF  cattype <>  *Blanks
  258.                AND cattype <>  'S'
  259.                AND cattype <>  '*';
  260.                  typeError = *On;
  261.                  #error    = *On;
  262.                  errorTest = *On;
  263.                  @MsgId  = 'DTO0017';
  264.                  EXSR  $SMsg;
  265.                ENDIF;
  266.  
  267.                IF  category  <=  *Blanks;
  268.                  caterror  = *On;
  269.                  #Error    = *On;
  270.                  errorTest = *On;
  271.                  @MsgId    = 'DTO0016';
  272.                  EXSR  $SMsg;
  273.                ENDIF;
  274.  
  275.                IF  carton  < *Zeros;
  276.                  ctnError  = *On;
  277.                  #error    = *On;
  278.                  errorTest = *On;
  279.                  @MsgId    = 'DTO0015';
  280.                  EXSR  $SMsg;
  281.                ENDIF;
  282.  
  283.                IF  pack  < *Zeros
  284.                OR  pack  > carton;
  285.                  pckError  = *On;
  286.                  #error    = *On;
  287.                  errorTest = *On;
  288.                  @MsgId    = 'DTO0015';
  289.                  EXSR  $SMsg;
  290.                ENDIF;
  291.  
  292.                IF  errorTest;
  293.                  UPDATE  DTU020A;
  294.                  IF  #First;
  295.                    #first      = *Off;
  296.                    rrna_error  = x;
  297.                  ENDIF;
  298.                ENDIF;
  299.              ENDIF;
  300.  
  301.            ENDFOR;
  302.  
  303.          ENDIF;
  304.  
  305.        ENDSR;
  306.  
  307.        //****************************************************************
  308.        // SUBROUTINE - $EditB                                          **
  309.        //    PURPOSE - Validate new category panel fields.             **
  310.        //****************************************************************
  311.  
  312.        BEGSR $EditB;
  313.  
  314.          #Error  = *Off;
  315.  
  316. 0254     pSet      = @set;
  317.          pType     = cattype;
  318.          pCategory = category;
  319.          CHAIN(n)  FileKey STRCIG;
  320.          IF  %found(STRCIG);
  321.            #Error  = *On;
  322.            @MsgId  = 'DTO0018';
  323.            EXSR  $SMsg;
  324.          ENDIF;
  325.  
  326.          IF  cattype <>  *Blanks
  327.          AND cattype <>  'S';
  328.            #Error  = *On;
  329.            @MsgId  = 'DTO0017';
  330.            EXSR  $SMsg;
  331.          ENDIF;
  332.  
  333.          IF  category  <=  *Blanks;
  334.            #Error  = *On;
  335.            @MsgId  = 'DTO0016';
  336.            EXSR  $SMsg;
  337.          ENDIF;
  338.  
  339.          IF  carton  < *Zeros;
  340.            #Error  = *On;
  341.            @MsgId  = 'DTO0015';
  342.            EXSR  $SMsg;
  343.          ELSE;
  344.            IF  pack  < *Zeros
  345.            OR  pack  > carton;
  346.              #Error  =  *On;
  347.              @MsgId  = 'DTO0015';
  348.              EXSR  $SMsg;
  349.            ENDIF;
  350.          ENDIF;
  351.  
  352.        ENDSR;
  353.  
  354.        //******************************************************************
  355.        // Subroutine - $PostList                                          *
  356.        //    Purpose - Post the prices to STRCIG.                         *
  357.        //******************************************************************
  358.  
  359.        BEGSR $postlist;
  360.  
  361.        IF  #Limit  > *Zeros;
  362.  
  363.          FOR x = 1 to  #Limit;
  364.  
  365.            CHAIN x DTU020A;
  366.            IF  %found();
  367.  
  368.              SELECT;
  369.  
  370.                WHEN  cattype = '*';        //  Delete master record.
  371.                  EXSR  $Delete;
  372.  
  373.                WHEN  category  <>  categoryH
  374.                OR    cattype   <>  cattypeH;
  375. 0254             pSet      = @set;
  376.                  pCategory = categoryH;    //  Either the type or category were
  377.                  pType     = cattypeH;     //  changed.  Delete the old one.
  378.                  CHAIN FileKey STRCIG;
  379.                  IF  %found(STRCIG);
  380.                    DELETE  STRCIGR;
  381.                  ENDIF;
  382. 0254             pSet      = @set;
  383.                  pCategory = category;
  384.                  pType     = cattype;
  385.                  CHAIN(n) FileKey STRCIG;
  386.                  IF  not %found(STRCIG);   //  Add the changed back as a new
  387.                    sctype      = cattype;  //  only if it doesn't already exist.
  388.                    scset       = @set;
  389.                    sccategory  = category;
  390.                    scctnretl   = carton;
  391.                    scpackretl  = pack;
  392.                    WRITE STRCIGR;
  393.                  ENDIF;
  394.  
  395.                OTHER;                      //  Simply update existing record.
  396.                  pSet      = @set;
  397.                  pCategory = category;
  398.                  pType     = cattype;
  399.                  CHAIN FileKey STRCIG;
  400.                  IF  %found(STRCIG);
  401.                    scctnretl   = carton;
  402.                    scpackretl  = pack;
  403.                    UPDATE  STRCIGR;
  404.                  ENDIF;
  405.              ENDSL;
  406.            ENDIF;
  407.  
  408.          ENDFOR;
  409.  
  410.        ENDIF;
  411.  
  412.        ENDSR;
  413.  
  414.        //****************************************************************
  415.        // Subroutine - $Delete                                          *
  416.        //    Purpose - Vaslidate requested deletion.                    *
  417.        //****************************************************************
  418.  
  419. 0194   BEGSR $Delete;
  420.  
  421. 0254     pSet      = @set;
  422.          pCategory = categoryH;
  423.          pType     = cattypeH;
  424.  
  425.          CHAIN(n)  FileKey STRCIG;
  426.          IF  %found(STRCIG);
  427.            catDelete = sccategory;
  428.            EXFMT DTU020C;
  429.            IF  DeleteIt;
  430.              CHAIN FileKey STRCIG;
  431.              DELETE  STRCIGR;
  432.            ENDIF;
  433.          ENDIF;
  434.  
  435.        ENDSR;
  436.  
  437.        //****************************************************************
  438.        // SUBROUTINE - $EOJ                                            **
  439.        //    PURPOSE - End of Program                                  **
  440.        //****************************************************************
  441.  
  442.        BEGSR $EOJ;
  443.  
  444.          *INLR = *On;
  445.          RETURN;
  446.  
  447.        ENDSR;
  448.  
  449.       /END-FREE
  450.  
  451.      C/Define MsgC
  452.      C/Copy $Msg
  453.  
  454.        //******************************************************************
  455.        // Subprocedure - $BuildList                                       *
  456.        //      Purpose - Build the list of current cigarette categories.  *
  457.        //******************************************************************
  458.  
  459.      P $BuildList      B
  460.  
  461.      D                 PI
  462.  
  463.       /free
  464.  
  465.        SF_Clear  = *On;
  466.        WRITE DTU020ACTL;
  467.        SF_Clear  = *Off;
  468.        rrna      = *Zeros;
  469.  
  470.        SETLL *Loval  STRCIG;
  471.        READ(n) STRCIG;
  472.  
  473.        DOW not %eof(STRCIG);
  474.  
  475. 0254     IF  scset = @set;
  476.            rrna      = rrna  + 1;
  477.            cattype   = sctype;
  478.            category  = sccategory;
  479.            carton    = scctnretl;
  480.            pack      = scpackretl;
  481.            cattypeH  = sctype;
  482.            categoryH = sccategory;
  483.            WRITE DTU020A;
  484. 0254     ENDIF;
  485.  
  486.          READ(n) STRCIG;
  487.  
  488.        ENDDO;
  489.  
  490.        #Limit  = rrna;
  491.        IF  rrna  > *Zeros;
  492.          SF_Display  = *On;
  493.          SF_End      = *On;
  494.          rrna        = 1;
  495.        ELSE;
  496.          SF_Display  = *Off;
  497.          SF_End      = *Off;
  498.        ENDIF;
  499.  
  500.        RETURN;
  501.  
  502.       /end-free
  503.  
  504.      P                 E
  505.  
  506.        //******************************************************************
  507. 0254   // Subprocedure - $BuildSet                                        *
  508.        //      Purpose - Build the list of price sets.                    *
  509.        //******************************************************************
  510.  
  511.      P $BuildSet       B
  512.  
  513.      D                 PI
  514.  
  515.       /free
  516.  
  517.        SF_Clear  = *on;
  518.        WRITE DTU020ECTL;
  519.        SF_Clear  = *Off;
  520.        rrne      = *Zeros;
  521.  
  522.        SETLL *Loval  STRSETID;
  523.        READ  STRSETID;
  524.  
  525.        DOW not %eof(STRSETID);
  526.  
  527.          rrne    = rrne  + 1;
  528.          @select = *Blanks;
  529.          @set    = ssset;
  530.          @sdesc  = ssdesc;
  531.  
  532.          WRITE DTU020E;
  533.          READ  STRSETID;
  534.  
  535.        ENDDO;
  536.  
  537.        #LimitE  = rrne;
  538.        IF  rrne  > *Zeros;
  539.          SF_Display  = *On;
  540.          SF_End      = *On;
  541.          rrne        = 1;
  542.        ELSE;
  543.          SF_Display  = *Off;
  544.          SF_End      = *Off;
  545.        ENDIF;
  546.  
  547.        RETURN;
  548.  
  549.       /end-free
  550.  
  551.      P                 E
  552.  
  553.        //******************************************************************
  554. 0254   // Subprocedure - $Select                                          *
  555.        //      Purpose - Select the price set to maintain.                *
  556.        //******************************************************************
  557.  
  558.      P $Select         B
  559.  
  560.      D                 PI
  561.  
  562.       /free
  563.  
  564.        setFound  = *Off;
  565.  
  566.        IF  #LimitE > *Zeros;
  567.          FOR x = 1 to  #LimitE;
  568.            CHAIN x DTU020E;
  569.            IF  %found();
  570.              IF  @select > *Blanks;
  571.                SetFound  = *On;
  572.                LEAVE;
  573.              ENDIF;
  574.            ENDIF;
  575.          ENDFOR;
  576.        ENDIF;
  577.  
  578.        RETURN;
  579.  
  580.       /end-free
  581.  
  582.      P                 E                       
  583.      
  584.      
  585.      
  586.      
  587.       *********************************************************************
  588.       * Name        :?DTU020D                                              ?*
  589.       * Date        :?27 February 2012                                     ?*
  590.       * Programmer  :?Jerry C. Adams                                       ?*
  591.       * Project No. :?0135                                                 ?*
  592.       * Description : Cigarette Inventory Master Maintenance.             *
  593.       *               Define cigarette categories and retail prices of    *
  594.       *               each category for store inventory.                  *
  595.       *********************************************************************
  596.  
  597.                                             DSPSIZ(24 80 *DS3)
  598.                                             CF03
  599.                                             CF01
  600.                 R DTU020A                   SFL
  601.                   CATTYPE        1   B  5  3DSPATR(CS)
  602.         51                                  DSPATR(RI)
  603.                   CATEGORY      50   B  5  7DSPATR(CS)
  604.         52                                  DSPATR(RI)
  605.                                             CHECK(LC)
  606.                   CARTON         5  2B  5 58EDTWRD('   .  ')
  607.                                             DSPATR(CS)
  608.         53                                  DSPATR(RI)
  609.                   PACK           5  2B  5 65EDTWRD('   .  ')
  610.                                             DSPATR(CS)
  611.         54                                  DSPATR(RI)
  612.                   CATTYPEH       1   H
  613.                   CATEGORYH     50   H
  614.  
  615.                 R DTU020ACTL                SFLCTL(DTU020A)
  616.                                             SFLSIZ(9999)
  617.                                             SFLPAG(0017)
  618.                                             OVERLAY
  619.                                             CF06
  620.                                             CF12
  621.         33                                  SFLDSP
  622.        N31                                  SFLDSPCTL
  623.         31                                  SFLCLR
  624.         90                                  SFLEND(*MORE)
  625.                   RRNA           4S 0H      SFLRCDNBR
  626.                                         1  2'DTU020A'
  627.                                         1 28'Cigarette Inventory Master'
  628.                                             DSPATR(UL)
  629.                                         1 66DATE
  630.                                             EDTCDE(Y)
  631.                                         2 66TIME
  632.                                         3 58'Carton'
  633.                                         3 66'Pack'
  634.                                         4  2'Type'
  635.                                             DSPATR(UL)
  636.                                         4  7'Category                          -
  637.                                                             '
  638.                                             DSPATR(UL)
  639.                                         4 58'Retail'
  640.                                             DSPATR(UL)
  641.                                         4 65'Retail'
  642.                                             DSPATR(UL)
  643.  
  644.                 R DTU020AFK
  645.                                        23  2'F1=Help'
  646.                                             DSPATR(UL)
  647.                                             COLOR(BLU)
  648.                                        23 10'F3=End'
  649.                                             DSPATR(UL)
  650.                                             COLOR(BLU)
  651.                                        23 17'F6=Add Category'
  652.                                             DSPATR(UL)
  653.                                             COLOR(BLU)
  654.                                        23 33'F12=Cancel'
  655.                                             DSPATR(UL)
  656.                                             COLOR(BLU)
  657.  
  658.                 R DTU020B
  659.                                             CF12
  660.                                             OVERLAY
  661.                                         1  2'DTU020B'
  662.                                         1 28'Cigarette Inventory Master'
  663.                                             DSPATR(UL)
  664.                                         1 66TIME
  665.                                         2 66DATE
  666.                                             EDTCDE(Y)
  667.                                         4  2'Mode: Add Category'
  668.                                         6  3'Category..............'
  669.                   CATEGORY      50   B  6 26DSPATR(CS)
  670.                                             CHECK(LC)
  671.                                         7  3'Carton Retail Price...'
  672.                   CARTON         5  2B  7 26EDTWRD('   .  ')
  673.                                             DSPATR(CS)
  674.                                         7 33'(2 dec.)'
  675.                                         8  3'Pack Retail Price.....'
  676.                   PACK           5  2B  8 26EDTWRD('   .  ')
  677.                                             DSPATR(CS)
  678.                                         8 33'(2 dec.)'
  679.                                         9  3'Type..................'
  680.                   CATTYPE        1   B  9 26DSPATR(CS)
  681.                                         9 28'(S=Specialty Cigarette)'
  682.                                        23  2'F1=Help'
  683.                                             DSPATR(UL)
  684.                                             COLOR(BLU)
  685.                                        23 10'F3=End'
  686.                                             DSPATR(UL)
  687.                                             COLOR(BLU)
  688.                                        23 17'F12=Cancel'
  689.                                             DSPATR(UL)
  690.                                             COLOR(BLU)
  691.  
  692.                 R DTU020C
  693.                                             CF23
  694.                                             CF12
  695.                                         1  2'DTU020C'
  696.                                         1 28'Cigarette Inventory Master'
  697.                                             DSPATR(UL)
  698.                                         1 66DATE
  699.                                             EDTCDE(Y)
  700.                                         2 66TIME
  701.                                         6 13'You have elected to delete categor-
  702.                                             y:'
  703.                   CATDELETE     50   O  7 13
  704.                                        23  2'F3=End'
  705.                                             DSPATR(UL)
  706.                                             COLOR(BLU)
  707.                                        23  9'F12=Cancel'
  708.                                             DSPATR(UL)
  709.                                             COLOR(BLU)
  710.                                        23 20'F23=Confirm Deletion'
  711.                                             DSPATR(UL)
  712.                                             COLOR(YLW)
  713.  
  714.                 R DTU020E                   SFL
  715.                   @SELECT        1   B  5 21
  716.                   @SET           1   O  5 28
  717.                   @SDESC        30   O  5 31
  718.  
  719.                 R DTU020ECTL                SFLCTL(DTU020E)
  720.         33                                  SFLDSP
  721.                                             SFLSIZ(9999)
  722.                                             SFLPAG(17)
  723.                                             OVERLAY
  724.                                             CF06
  725.        N31                                  SFLDSPCTL
  726.         31                                  SFLCLR
  727.         90                                  SFLEND(*MORE)
  728.                   RRNE           4S 0H      SFLRCDNBR
  729.                                         1  2'DTU020E'
  730.                                         1 30'Cigarette Price Tiers'
  731.                                         1 65DATE
  732.                                             EDTCDE(Y)
  733.                                         2 65TIME
  734.                                         4 18'Select'
  735.                                             DSPATR(UL)
  736.                                         4 27'Set'
  737.                                             DSPATR(UL)
  738.                                         4 31'Description                  '
  739.                                             DSPATR(UL)
  740.  
  741.                 R DTU020EFK
  742.                                        24  3'F3=End'
  743.                                             DSPATR(UL)
  744.                                             COLOR(BLU)
  745.                                        24 10'F6=Maintain Set'
  746.                                             DSPATR(UL)
  747.                                             COLOR(BLU)
  748.  
  749.                 R MSGSFLA                   SFL
  750.                                             SFLMSGRCD(24)
  751.                                             TEXT('Error message subfile')
  752.                   @KEY                      SFLMSGKEY
  753.                   @PGMQ                     SFLPGMQ
  754.  
  755.                 R MSGSFLB                   SFLCTL(MSGSFLA)
  756.                                             TEXT('Error message control file')
  757.                                             OVERLAY
  758.                                             SFLDSP
  759.                                             SFLDSPCTL
  760.                                             SFLINZ
  761.        N03                                  SFLEND
  762.                                             SFLSIZ(0002)
  763.                                             SFLPAG(0001)
  764.                   @PGMQ                     SFLPGMQ                             
© 2004-2019 by midrange.com generated in 0.011s valid xhtml & css