midrange.com code scratchpad
Name:
Program is not getting compiled
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
06/21/2023 04:11:51 pm
IP:
Logged
Description:
Hi,

When trying to compile this program it's not getting compiled attaching spool file , it seems some authority error.
Code:
  1. DRIVERPRG:-
  2.  
  3. **FREE
  4. ctl-opt option(*srcstmt:*nodebugio) dftactgrp(*no);
  5.  
  6. // Procedure interface for SubprogramA
  7. dcl-pr SubprogramA;
  8.   // Parameters if any
  9. end-pr;
  10.  
  11. // Procedure interface for SubprogramB
  12. dcl-pr SubprogramB;
  13.   // Parameters if any
  14. end-pr;
  15.  
  16. // Procedure interface for SubprogramC
  17. dcl-pr SubprogramC;
  18.   // Parameters if any
  19. end-pr;
  20.  
  21. dcl-c SubprogramAValue 'SUBPROGA';
  22. dcl-c SubprogramBValue 'SUBPROGB';
  23. dcl-c SubprogramCValue 'SUBPROGC';
  24.  
  25. // Call Subprogram A
  26. SubprogramA();
  27.  
  28. // Call Subprogram B
  29. SubprogramB();
  30.  
  31. // Call Subprogram C
  32. SubprogramC();
  33.  
  34. *INLR = *ON;
  35. ***********************************
  36. SUBPROGA:-
  37. **FREE
  38.  
  39. ctl-opt option(*srcstmt:*nodebugio) dftactgrp(*no);
  40.  
  41. dcl-proc SubprogramA;
  42.   dsply 'This is Subprogram A';
  43.   *INLR = *ON;
  44. end-proc;
  45. ************************************
  46. SUBPROGB:-
  47. **FREE
  48.  
  49. ctl-opt option(*srcstmt:*nodebugio) dftactgrp(*no);
  50.  
  51. dcl-proc SubprogramB;
  52.   dsply 'This is Subprogram B';
  53.   *INLR = *ON;
  54. end-proc;
  55. ***********************************
  56. SUBPROGC:-
  57.  
  58. **FREE
  59.  
  60. ctl-opt option(*srcstmt:*nodebugio) dftactgrp(*no);
  61.  
  62. dcl-proc SubprogramC;
  63.   dsply 'This is Subprogram C';
  64.   *INLR = *ON;
  65. end-proc;
  66. *********************************************
  67. job log of compilation failure :-
  68.  
  69. job log of compilation failure.
  70.  
  71.  5770SS1 V7R5M0 220415                        Display Job Log                       PUB400    06/21/23  15:29:56 UTC     Page    1
  72.   Job name . . . . . . . . . . :   QPAD151111      User  . . . . . . :   K21          Number . . . . . . . . . . . :   485301
  73.   Job description  . . . . . . :   K21             Library . . . . . :   QGPL
  74. MSGID      TYPE                    SEV  DATE      TIME             FROM PGM     LIBRARY     INST     TO PGM      LIBRARY     INST
  75. CPF1124    Information             00   06/21/23  15:11:53,932138  QWTPIIPP     QSYS        04DC     *EXT                    *N
  76.                                      Message . . . . :   Job 485301/K21/QPAD151111 started on 06/21/23 at 15:11:53
  77.                                        in subsystem QINTER2 in QSYS. Job entered system on 06/21/23 at 15:11:53.
  78. CPF2451    Information             40   06/21/23  15:11:54,112594  QMHCHMSQ     QSYS        0AF7     *EXT                    *N
  79.                                      Message . . . . :   Message queue K21 is allocated to another job.
  80.                                      Cause . . . . . :   If this message was received when trying to sign on, the
  81.                                        most probable cause is that you are already signed on to another work
  82.                                        station. (A message queue can be placed in break or notify mode in only one
  83.                                        job at a time.) The message queue could also have been allocated by the
  84.                                        Allocate Object (ALCOBJ) command or the Receive Message (RCVMSG) command.
  85.                                        Recovery  . . . :   Determine what job has allocated the message queue
  86.                                        (using the WRKOBJLCK command).  Work station message queues cannot be
  87.                                        allocated.  They are associated with the device of the same name.  To
  88.                                        determine if there are locks on a work station message queue, check the
  89.                                        locks on the device description of the same name.  When the message queue is
  90.                                        no longer allocated try the request again.
  91. *NONE      Command                      06/21/23  15:11:54,713191  QCADRV       QSYS        0421     SETLANG     PUB400SYS   000D
  92.                                      Message . . . . :     1200 - CHGJOB JOB(*) LOG(0 0 *NOLIST) LOGCLPGM(*NO)
  93. CPF2128    Escape                  40   06/21/23  15:11:54,716106  QLICHLBL     QSYS        02ED     SETLANG     PUB400SYS   003A
  94.                                      Message . . . . :   Library QSYS2974 not in system portion of library list.
  95.                                      Cause . . . . . :   The specified library QSYS2974 is not in the system
  96.                                        portion of the library list and therefore cannot be removed. Recovery  . . .
  97.                                        :   Display the library list (DSPLIBL) to determine if the library name
  98.                                        specified is incorrect or the specified library is in the user portion of
  99.                                        the library list.  The product library will be removed at the completion of
  100.                                        this command. If the library name is incorrect, change the library name and
  101.                                        then try the command again.  If the library is in the user portion of the
  102.                                        library list, use the RMVLIBLE command to remove the library from the user
  103.                                        portion of the library list. If the library is the current library, use the
  104.                                        CHGCURLIB command to remove it.
  105. CPF2128    Escape                  40   06/21/23  15:11:54,716180  QLICHLBL     QSYS        02ED     SETLANG     PUB400SYS   003A
  106.                                      Message . . . . :   Library QSYS2975 not in system portion of library list.
  107.                                      Cause . . . . . :   The specified library QSYS2975 is not in the system
  108.                                        portion of the library list and therefore cannot be removed. Recovery  . . .
  109.                                        :   Display the library list (DSPLIBL) to determine if the library name
  110.                                        specified is incorrect or the specified library is in the user portion of
  111.                                        the library list.  The product library will be removed at the completion of
  112.                                        this command. If the library name is incorrect, change the library name and
  113.                                        then try the command again.  If the library is in the user portion of the
  114.                                        library list, use the RMVLIBLE command to remove the library from the user
  115.                                        portion of the library list. If the library is the current library, use the
  116.                                        CHGCURLIB command to remove it.
  117. CPF2128    Escape                  40   06/21/23  15:11:54,716235  QLICHLBL     QSYS        02ED     SETLANG     PUB400SYS   003A
  118.                                      Message . . . . :   Library QSYS2926 not in system portion of library list.
  119.                                      Cause . . . . . :   The specified library QSYS2926 is not in the system
  120.                                        portion of the library list and therefore cannot be removed. Recovery  . . .
  121.                                        :   Display the library list (DSPLIBL) to determine if the library name
  122.                                        specified is incorrect or the specified library is in the user portion of
  123.                                        the library list.  The product library will be removed at the completion of
  124.                                        this command. If the library name is incorrect, change the library name and
  125.                                        then try the command again.  If the library is in the user portion of the
  126.                                        library list, use the RMVLIBLE command to remove the library from the user
  127.                                                    -=* http://pub400.com *=-
  128.  5770SS1 V7R5M0 220415                        Display Job Log                       PUB400    06/21/23  15:29:56 UTC     Page    2
  129.   Job name . . . . . . . . . . :   QPAD151111      User  . . . . . . :   K21          Number . . . . . . . . . . . :   485301
  130.   Job description  . . . . . . :   K21             Library . . . . . :   QGPL
  131. MSGID      TYPE                    SEV  DATE      TIME             FROM PGM     LIBRARY     INST     TO PGM      LIBRARY     INST
  132.                                        portion of the library list. If the library is the current library, use the
  133.                                        CHGCURLIB command to remove it.
  134. CPF2128    Escape                  40   06/21/23  15:11:54,716288  QLICHLBL     QSYS        02ED     SETLANG     PUB400SYS   003A
  135.                                      Message . . . . :   Library QSYS2929 not in system portion of library list.
  136.                                      Cause . . . . . :   The specified library QSYS2929 is not in the system
  137.                                        portion of the library list and therefore cannot be removed. Recovery  . . .
  138.                                        :   Display the library list (DSPLIBL) to determine if the library name
  139.                                        specified is incorrect or the specified library is in the user portion of
  140.                                        the library list.  The product library will be removed at the completion of
  141.                                        this command. If the library name is incorrect, change the library name and
  142.                                        then try the command again.  If the library is in the user portion of the
  143.                                        library list, use the RMVLIBLE command to remove the library from the user
  144.                                        portion of the library list. If the library is the current library, use the
  145.                                        CHGCURLIB command to remove it.
  146. CPF2128    Escape                  40   06/21/23  15:11:54,716355  QLICHLBL     QSYS        02ED     SETLANG     PUB400SYS   003A
  147.                                      Message . . . . :   Library QSYS2957 not in system portion of library list.
  148.                                      Cause . . . . . :   The specified library QSYS2957 is not in the system
  149.                                        portion of the library list and therefore cannot be removed. Recovery  . . .
  150.                                        :   Display the library list (DSPLIBL) to determine if the library name
  151.                                        specified is incorrect or the specified library is in the user portion of
  152.                                        the library list.  The product library will be removed at the completion of
  153.                                        this command. If the library name is incorrect, change the library name and
  154.                                        then try the command again.  If the library is in the user portion of the
  155.                                        library list, use the RMVLIBLE command to remove the library from the user
  156.                                        portion of the library list. If the library is the current library, use the
  157.                                        CHGCURLIB command to remove it.
  158. CPF2128    Escape                  40   06/21/23  15:11:54,716426  QLICHLBL     QSYS        02ED     SETLANG     PUB400SYS   003A
  159.                                      Message . . . . :   Library QSYS2909 not in system portion of library list.
  160.                                      Cause . . . . . :   The specified library QSYS2909 is not in the system
  161.                                        portion of the library list and therefore cannot be removed. Recovery  . . .
  162.                                        :   Display the library list (DSPLIBL) to determine if the library name
  163.                                        specified is incorrect or the specified library is in the user portion of
  164.                                        the library list.  The product library will be removed at the completion of
  165.                                        this command. If the library name is incorrect, change the library name and
  166.                                        then try the command again.  If the library is in the user portion of the
  167.                                        library list, use the RMVLIBLE command to remove the library from the user
  168.                                        portion of the library list. If the library is the current library, use the
  169.                                        CHGCURLIB command to remove it.
  170.  
  171.  
© 2004-2019 by midrange.com generated in 0.003s valid xhtml & css