Porting Central
Skip to main content

PASE for iSeries Technical FAQ

Are there any development tools available for OS/400 PASE?

The iSeries Tools for Developers PRPQ product contains various tools that will aid in the development, building, and porting of iSeries applications. Many of these tools run in OS/400 PASE. For more information see the iSeries Tools for Developers page. The Tools List indicates which tools run in the OS/400 PASE environment.

How do I get descripters 0, 1 and 2 set up for my application that uses PASE?

One fairly easy way is to launch your application using one of the PASE shells or QShell, they all set up 0, 1 and 2 as expected.

Can I run the 'tar' utility to install my application in OS/400 PASE?

There are two 'tar' utilities, one that runs in PASE and one runs in QShell. If you expect behavior similar to 'tar' on a UNIX system, you will want to use the ASCII version that runs in PASE.

What do I need to install to use PASE?

In V5R2 and subsequent releases, OS/400 PASE is a no-charge option and is included on all installation media. You will also want to ensure that you load and apply the latest PTFs.

Where do I put my executables programs if I am using PASE for my application deployment?

The /QOpenSys file system is a case-sensitive file system that is designed to be POSIX 1003.1 compliant; it is the best choice for PASE executables. The root file system ( ' / ' ) can also be used to contain PASE executables; file names are case insensitive, so some care should be taken that names are unique.

The CD-ROM file system /QOPT also contains directories and stream files. The other file systems /QSYS.LIB and /QDLS contain other object types including OS/400 program objects. PASE does not use these for execution.

How is group ownership assigned to directories and stream files on OS/400?

In the root file system and in the /QOpenSys file systems, the group owner for a new object is copied from the group owner of the parent directory according to the FIPS 151-2 specification. The file owner can change the group with a separate command. The root file system is shipped with group owner set to zero, so the default behavior is that no group owners are assigned.

Is FTP available from within PASE?

No, you use FTP from the command line or using the system command from the PASE shells or FTP from another system to move files into the OS/400 file system parts that support stream files.

How do I use FTP with stream files on iSeries?

FTP on iSeries looks much the same as on other systems except that the formatting of the file name needs to be routed to the desired part of the file system. The NAMEFMT parameter routes the files into /QSYS.LIB (the library system) when set to 0 (the released system default). It routes them into the root ( ' / ' ) file system when set to 1. If you are unsure whether the default value is in use on a particular system, use the NAMEFMT 1 command as the first subcommand within the ftp session. (If you type the ftp command on an AIX system, you may need to type quote site namefmt 1 to get the setting needed.)

Alternatively, you may initiate your FTP to the iSeries server as usual. Upon successful sign on, as the first FTP subcommand, simply change the current directory to somewhere under root ( ' / ' ). This action will inherently change the name format to 1, and you will see a message to that effect. You will see "<some directory> is the current directory" rather than "is the current library" to ensure that things end up where you intend. Also be sure that your current working directory is set as you intend, using the lcd command for the local iSeries directory if necessary.

How do I debug PASE programs?

OS/400 PASE programs may be debugged with a combination of:

  • AIX-based 'dbx' utility (either on AIX or within PASE)
  • Java-based graphical system debugger