× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, 2006-03-01 at 13:30 -0500, John Candidi wrote:
> Following someone's suggestion I created a PF and copied a spooled file to
> it. How do I get that to the IFS? As you can tell, I'm new at this

Technically, it's already accessible via the IFS as
'/qsys.lib/yourlib.lib/yourfile.file/yourfile.mbr'.

How about:

Data File is in WMCLIB, named SPLTEST.
Target is /home/wmc/spool/march/ directory, file name spltest.txt

cpy obj('/qsys.lib/wmclib.lib/spltest.file/spltest.mbr')
    toobj('/home/wmc/spool/march/spltest.txt')
    toccsid(*PCASCII)
    dtafmt(*TEXT)

Then, 
wrklnk '/home/wmc/spool/march/*' to view the results.

Note that the data file and the target director(ies) must exist prior to
the copy, or you will receive an error.

Of course the drawback to CPYSPLF is that it doesn't keep the pages
looking like pages -- it compresses out the blank lines by default.  I
built a CVTSPLFI command that does a CPYSPLF with CTLCHAR(*PRTCTL) and
then I wrote a program that interprets that data, and re-inserts blank
lines and such as it puts the records on the IFS.  Better, but not
perfect as it doesn't output PDF, and it doesn't work with AFPDS spool
files.

HTH.

Regards,
Rich



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.