Hello Monks,

I' rather skeptical about this... and didn't find anything searching... some monk probably knows more...

Within an OS400 PASE environment, how can I determine that the architecture is actually OS400?

For example....
#!/usr/bin/perl use strict; use Config; my $os = $^O; my $config = $Config{'archname'}; print "OS -> $os\n"; print "Config -> $config\n";
Output of the program is:
OS -> aix Config -> aix
So.... on an actual AIX host, the program outputs:
OS -> aix Config -> aix-thread-multi
If I'm not mistaken, PASE is supposed to emulate the AIX environment for OS400. So... is it safe to assume that the output of $Config{'archname'} on OS400 is valid, i.e. can it be stated that anytime that output is aix, it's not AIX architecture but OS400?

Update:Corrected spelling in title.

regexes


-------------------------
Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan "press on" has solved and always will solve the problems of the human race.
-- Calvin Coolidge, 30th President of the USA.

In reply to OS400 PASE - architecture? by regexes

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.