Creating Inbound and Outbound native files

Note: This section is only applicable to users who will be writing to the Native File System.  If you are writing to the Integrated File System, you can skip this section.

Before you can successfully read and write AS/400 native files, they must be created using the following AS/400 CL commands.  In this example, we have created a LEXICOM library where the INBOUND, OUTBOUND and SENTMSG files will reside:

CRTPF FILE(LEXICOM/INBOUND) RCDLEN(132) MAXMBRS(*NOMAX) SIZE(*NOMAX)
CRTPF FILE(LEXICOM/OUTBOUND) RCDLEN(132) MAXMBRS(*NOMAX) SIZE(*NOMAX)
CRTPF FILE(LEXICOM/SENTMSG) RCDLEN(132) MAXMBRS(*NOMAX) SIZE(*NOMAX)
Note: Inbox, Outbox, and Sentbox (optional) are the only local directories that can be "mapped" to the AS/400 native file system.   Do not attempt to map the MDN or certs directory to the AS/400 native file system!