How to create a subfile
Announcement
Collapse
No announcement yet.
How to create a subfile from a scratch
Collapse
X
-
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 DSPFAttached FilesAll 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
-
Re: How to create a subfile from a scratch
Take a look here
jamieAll 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
Comment