Bernd Oppolzer berndoppolzer@yahoo.com [H390-MVS]
2018-02-04 08:57:16 UTC
Hello all,
my Stanford Pascal compiler relies on some Fortran subroutines, which
are located in the FORTLIB TXTLIB on CMS or SYS1.FORTLIB on MVS.
Now some friend who wants to install it on today's z/OS has problems,
because there is no SYS1.FORTLIB.
I would like to overcome this problem by packaging the needed subfunctions
of FORTLIB in a module of my own and delivering it as part of the Pascal
distribution.
Questions:
a) is it possible to get parts of a CMS TXTLIB out of it in 80 bytes
TEXT format?
Is there a CMS command which does this? Single object at a time would be
sufficient. The linker builds load module format only, this is not what
I want.
b) I tried to do it myself using a Pascal program, simply by omitting
all records
from the TXTLIB, which don't have ESD, RLD, TXT or END in columns 2 to 4.
But the Pascal program gets EOF after the first TEXT deck inside the
TXTLIB.
Where does this EOF come from? The Pascal runtime uses normal QSAM
macros (DCB, OPEN, GET). How can I get around this EOF, maybe by changing
the Pascal runtime ... or is it simply a FILEDEF option?
Any other suggestions? I don't need the complete SYS1.FORTLIB, only some
functions from there (I know the names of the needed functions; I already
built a PASMATH load module on MVS using the linkage editor containing
just the relevant subset which works perfectly as a replacement for
SYS1.FORTLIB ... but it is still a load module, and I want a FB 80 TEXT
file,
because that's what I can easily transport in my installation procedure).
Thank you,
kind regards
Bernd
my Stanford Pascal compiler relies on some Fortran subroutines, which
are located in the FORTLIB TXTLIB on CMS or SYS1.FORTLIB on MVS.
Now some friend who wants to install it on today's z/OS has problems,
because there is no SYS1.FORTLIB.
I would like to overcome this problem by packaging the needed subfunctions
of FORTLIB in a module of my own and delivering it as part of the Pascal
distribution.
Questions:
a) is it possible to get parts of a CMS TXTLIB out of it in 80 bytes
TEXT format?
Is there a CMS command which does this? Single object at a time would be
sufficient. The linker builds load module format only, this is not what
I want.
b) I tried to do it myself using a Pascal program, simply by omitting
all records
from the TXTLIB, which don't have ESD, RLD, TXT or END in columns 2 to 4.
But the Pascal program gets EOF after the first TEXT deck inside the
TXTLIB.
Where does this EOF come from? The Pascal runtime uses normal QSAM
macros (DCB, OPEN, GET). How can I get around this EOF, maybe by changing
the Pascal runtime ... or is it simply a FILEDEF option?
Any other suggestions? I don't need the complete SYS1.FORTLIB, only some
functions from there (I know the names of the needed functions; I already
built a PASMATH load module on MVS using the linkage editor containing
just the relevant subset which works perfectly as a replacement for
SYS1.FORTLIB ... but it is still a load module, and I want a FB 80 TEXT
file,
because that's what I can easily transport in my installation procedure).
Thank you,
kind regards
Bernd