ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to create a subfile from a scratch

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

  • How to create a subfile from a scratch

    How to create a subfile

  • #2
    Steps to building a subfile

    So on command line type this first (we need data)

    DSPOBJD OBJ(QSYS/ADD*) OBJTYPE(*CMD)
    OUTPUT(*OUTFILE) OUTFILE(QGPL/ADDCMDS)

    now we have all commands that start with ADD in a table (ADDCMDS) in library QGPL.


    The subfile simple is better to start:

    Review subfile DDS attached and ask questions in you next post
    This is a subfile with a function key record and a message subfile.
    It has SLFSIZ and SFLPAG different sizes which forces the system to control Page Up. We need only work about Page Down

    Review the DDS keywords specifically
    • SFLSIZ(0011)
    • SFLPAG(0010)
    • RTNCSRLOC(&#REC &#FLD)
    • SFLCSRRRN(&WHERE)
    • SFLDSP
    • SFLDSPCTL
    • SFLCLR
    • SFLRCDNBR


    We will go over the message subfile later
    Download the attachment to your AS400 and compile.
    Ask questions to proceed. This is of type DSPF
    Attached Files
    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


    • #3
      Re: How to create a subfile from a scratch

      Hi,
      I have done with this subfile & compiled.
      Is the source code there to handle this message subfile?
      If it is present please attach & post.
      I want to know how the source code is handelling message subfile.
      Regards,
      Omkar

      Comment


      • #4
        Re: How to create a subfile from a scratch

        Take a look here




        jamie
        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

        Working...
        X