×
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 Fri, 2009-10-23 at 14:17 -0500, Tom wrote:
We're on v5r2. I need to copy an AFPDS spoolfile to a db file, which will
then be accessed within an RPG program. I've tried CPYSPLF, but the
system says it can't do it.
Any ideas?
Tom,
The only idea which jumps out from infocenter-- but somebody here may
know better--is the set of APIs Open Spooled File (QSPOPNSP), Get
Spooled File Data (QSPGETSP), and Close Spooled File (QSPCLOSP) API.
How you map the data in a df file is up to you; I know of no such thing
as a standard mapping.
In the past, I have looked at these APIs only deeply enough to be
encouraged to invent another solution to the problemn at hand. OTOH,
there more doubtless more examples now that when I last cared, google is
better now than when I last cared, and so forth.
Depending on the nature of your spool files and what you want to extract
from them, you may not need to parse the whole AFPDS language. If you
care to tell us about your goal, the people here may be able to suggest
and alternative solution.
Please let us know how you get on.
Cheers,
Terry.
As an Amazon Associate we earn from qualifying purchases.