ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Common H spec for all programs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Common H spec for all programs

    Hai all ,

    I have one doubt ? see i dont want to specify H spec on my program while creating .But while compiling automatically the H spec should add on my program how it is possible?


    please guide me?

    Regards and Thanks

    Ravi.

  • #2
    Re: Common H spec for all programs

    Ravi,

    In H-Spec u can give all the options that u can give when u press 14(compile) and Take F4 like

    Default activation group . . . . *NO *YES, *NO
    Activation group . . . . . . . . *CALLER Name, QILE, *NEW, *CALLER
    Binding directory . . . . . . . *NONE Name, *NONE
    Library . . . . . . . . . . . Name, *LIBL, *CURLIB...

    etc ...

    Hence Take F4 and specify the options.
    Thanks,
    Giri

    Comment


    • #3
      Re: Common H spec for all programs

      Check this out also

      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: Common H spec for all programs

        In my shop we use the /copy directive on the first line of every program to get standard headers in all of the programs.

        H/copy [library]/[source file],[member]
        Goodbye

        Comment


        • #5
          Re: Common H spec for all programs

          Hai Kenm

          I need some detail explanation please????

          regards
          ravi

          Comment


          • #6
            Re: Common H spec for all programs

            Create a member called HEADER in your QRPGLESRC file. Make the member type RPGLE.

            In the member add you H specs

            Example:

            Hoption (*srcstmt:*nodebugio)
            Haut(*all)
            Htruncnbr(*yes)
            Hfixnbr(*inputpacked)
            Hbnddir('QC2LE')


            In your programs add this line to the top

            H/COPY LIBRARY/QRPGLESRC,HEADER

            replacing the LIBRARY with whatever library the source file you added HEADER to was in.
            Goodbye

            Comment

            Working...
            X