Vickie Cooper wrote:
!I need to read an mvs file (one line at a time).
!Is the best way to do this using os390::stdio?
!(I had opened an !mvs file and put it in an array...
!but now the user is running out of memory because
!the file is too large...so I
!want to read the file line by line).
The OS390::Stdio module will let you do this - assuming that
you do not want to incur the computational expense and/or data
replication trouble of running a command to copy the file from
a data set to a file in the HFS (e.g. running `tso put` in backticks?)
!I looked at the site:
!http://pvhp.best.vwh.net/os390/OS390-Stdio/
!but I'm not sure which is the correct version
!to download. I'm using perl:
!This is perl, version 5.005_03 built for os390
It should be possible to use OS390-Stdio-0.008.tar.gz
with that version of perl.
!Once I have the OS390::STDIO file...what is the
!best way to add it to perl (I've never added a
!module before and I don't want to cause perl to
!start failing). Is there a way to use the
!module...without actually adding it to perl to
!test it and verify it will work with this release?
The method to add the extension (it is more than a module)
is documented in several places including the README
file that comes with that *.tar.gz file. It is also visible
at:
http://search.cpan.org/src/PVHP/OS390-Stdio-0.008/README
Since you are running perl 5.005_03 it is highly unlikely
that you have dynamic loading working hence you'd need to
statically link the .so for OS390::Stdio into a new perl
binary and to also run the "make inst_perl" step that is
mentioned in the README. OS390::Stdio is a C based
extension of perl rather than a mere "module". Had it been
simply a module then there are ways to ensure loading
that do not entail rebuilding perl.
Since you statically re-link the perl binary in the
build tree for OS390-Stdio it could be possible to run
it over perl's own "make test" suite but that would most
likely be too difficult to carry out in practice.
I suspect I have not given you the answer that you
wanted to receive, nonetheless I hope that helps.
Peter Prymmer