{
    "mode": "man",
    "parameter": "perlos400",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/perlos400/1/json",
    "generated": "2026-06-13T21:21:34Z",
    "sections": {
        "NAME": {
            "content": "perlos400 - Perl version 5 on OS/400\n\nThis document needs to be updated, but we don't know what it should say.  Please submit\ncomments to <https://github.com/Perl/perl5/issues>.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This document describes various features of IBM's OS/400 operating system that will affect\nhow Perl version 5 (hereafter just Perl) is compiled and/or runs.\n\nBy far the easiest way to build Perl for OS/400 is to use the PASE (Portable Application\nSolutions Environment), for more information see\n<http://www.iseries.ibm.com/developer/factory/pase/index.html> This environment allows one to\nuse AIX APIs while programming, and it provides a runtime that allows AIX binaries to execute\ndirectly on the PowerPC iSeries.\n",
            "subsections": [
                {
                    "name": "Compiling Perl for OS/400 PASE",
                    "content": "The recommended way to build Perl for the OS/400 PASE is to build the Perl 5 source code\n(release 5.8.1 or later) under AIX.\n\nThe trick is to give a special parameter to the Configure shell script when running it on\nAIX:\n\nsh Configure -DPASE ...\n\nThe default installation directory of Perl under PASE is /QOpenSys/perl.  This can be\nmodified if needed with Configure parameter -Dprefix=/some/dir.\n\nStarting from OS/400 V5R2 the IBM Visual Age compiler is supported on OS/400 PASE, so it is\npossible to build Perl natively on OS/400.  The easier way, however, is to compile in AIX, as\njust described.\n\nIf you don't want to install the compiled Perl in AIX into /QOpenSys (for packaging it before\ncopying it to PASE), you can use a Configure parameter: -Dinstallprefix=/tmp/QOpenSys/perl.\nThis will cause the \"make install\" to install everything into that directory, while the\ninstalled files still think they are (will be) in /QOpenSys/perl.\n\nIf building natively on PASE, please do the build under the /QOpenSys directory, since Perl\nis happier when built on a case sensitive filesystem.\n"
                },
                {
                    "name": "Installing Perl in OS/400 PASE",
                    "content": "If you are compiling on AIX, simply do a \"make install\" on the AIX box.  Once the install\nfinishes, tar up the /QOpenSys/perl directory.  Transfer the tarball to the OS/400 using FTP\nwith the following commands:\n\n> binary\n> site namefmt 1\n> put perl.tar /QOpenSys\n\nOnce you have it on, simply bring up a PASE shell and extract the tarball.\n\nIf you are compiling in PASE, then \"make install\" is the only thing you will need to do.\n\nThe default path for perl binary is /QOpenSys/perl/bin/perl.  You'll want to symlink\n/QOpenSys/usr/bin/perl to this file so you don't have to modify your path.\n"
                },
                {
                    "name": "Using Perl in OS/400 PASE",
                    "content": "Perl in PASE may be used in the same manner as you would use Perl on AIX.\n\nScripts starting with #!/usr/bin/perl should work if you have /QOpenSys/usr/bin/perl\nsymlinked to your perl binary.  This will not work if you've done a setuid/setgid or have\nenvironment variable PASEEXECQOPENSYS=\"N\".  If you have V5R1, you'll need to get the latest\nPTFs to have this feature.  Scripts starting with #!/QOpenSys/perl/bin/perl should always\nwork.\n"
                },
                {
                    "name": "Known Problems",
                    "content": "When compiling in PASE, there is no \"oslevel\" command.  Therefore, you may want to create a\nscript called \"oslevel\" that echoes the level of AIX that your version of PASE runtime\nsupports.  If you're unsure, consult your documentation or use \"4.3.3.0\".\n\nIf you have test cases that fail, check for the existence of spool files.  The test case may\nbe trying to use a syscall that is not implemented in PASE.  To avoid the SIGILL, try setting\nthe PASESYSCALLNOSIGILL environment variable or have a handler for the SIGILL.  If you can\ncompile programs for PASE, run the config script and edit config.sh when it gives you the\noption.  If you want to remove fchdir(), which isn't implement in V5R1, simply change the\nline that says:\n\ndfchdir='define'\n\nto\n\ndfchdir='undef'\n\nand then compile Perl.  The places where fchdir() is used have alternatives for systems that\ndo not have fchdir() available.\n"
                },
                {
                    "name": "Perl on ILE",
                    "content": "There exists a port of Perl to the ILE environment.  This port, however, is based quite an\nold release of Perl, Perl 5.00502 (August 1998).  (As of July 2002 the latest release of Perl\nis 5.8.0, and even 5.6.1 has been out since April 2001.)  If you need to run Perl on ILE,\nthough, you may need this older port: <http://www.cpan.org/ports/#os400> Note that any Perl\nrelease later than 5.00502 has not been ported to ILE.\n\nIf you need to use Perl in the ILE environment, you may want to consider using Qp2RunPase()\nto call the PASE version of Perl.\n"
                }
            ]
        },
        "AUTHORS": {
            "content": "Jarkko Hietaniemi <jhi@iki.fi> Bryan Logan <bryanlog@us.ibm.com> David Larson\n<larson1@us.ibm.com>\n\n\n\nperl v5.34.0                                 2025-07-25                                 PERLOS400(1)",
            "subsections": []
        }
    },
    "summary": "perlos400 - Perl version 5 on OS/400  This document needs to be updated, but we don't know what it should say.  Please submit comments to <https://github.com/Perl/perl5/issues>.",
    "flags": [],
    "examples": [],
    "see_also": []
}