Yes.

If it's a C90-compliant program - it can run literally "anywhere".

If you use "MSDOS/PCDOS extensions", like findfirst/findnext
to try to traverse a directory - well - there are multiple theoretical
ways of doing that from C. I could have copied what Microsoft
C does, but I didn't. I don't believe there is anything definitive
for the S/370 / z/Arch environment, so my function names are
just as good as Microsoft's, in my opinion - but you can quibble
what PCDOS should be on the mainframe.

BFN. Paul.





On Thu, 7 Aug 2025 14:36:04 -0400, Phil Smith III <[email protected]> wrote:

>Ohhh! That's what I hadn't grokked. That's interesting indeed. OK, so IF it's 
>a C program for DOS, you can run it in this z/PDOS environment. Got it.
>
>-----Original Message-----
>From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
>Paul Edwards
>Sent: Thursday, August 7, 2025 2:31 PM
>To: [email protected]
>Subject: Re: z/OS PCDOS
>
>Mike is somewhat right.
>
>You are required to recompile your "PCDOS" programs with gccmvs to produce 
>S/370 code.
>
>If the PC had used the S/370 instruction set instead of the 8086 instruction 
>set, what would you expect PCDOS to look like? This is it, basically.
>
>Or you can run z/PDOS-generic standalone. It's the same application 
>executables being run. gccmvs etc.
>
>In the same way that z/OS and z/VSE use different executables, z/PDOS-generic 
>is another OS. But "inspired" by PCDOS.
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to