Software/Hardware used: As Asked: September 10, AM Last updated: October 25, PM. Related Questions. Spool · FILES. There has always been a need to convert spool file into PC supported file for transmission of spool file or maintaining record of the iSeries report in a PC or. On iSeries, instead of transferring a spool file to an Excel spreadsheet, use the CPYTOIMPF command to create a CVS text file that can be easily loaded into.
|Published (Last):||25 January 2017|
|PDF File Size:||16.77 Mb|
|ePub File Size:||2.91 Mb|
|Price:||Free* [*Free Regsitration Required]|
I have been looking around but I haven’t found a small code to start from there, I been searching around and haven’t found anything close.
I have the same problem. Sourcecode to open a file. That’s the plan but without opening the file the rest doesn’t work.
Copy Spooled File (CPYSPLF)
You guys have any idea or suggestion on how to start this? I’m not sure about AS, but on system z there is typically an FTP service that can be used to retrieve job spool files.
Check with your system admin to find out which options are available for fetching job output. Once you know the options, you’ll be better equipped to figure out how to handle the problem in C.
It also seems like there are some classes to support FTP interaction in C. You can save the file to a shared IFS directory mapped to a Windows drive and have your c program get it from there.
There are many different ways to go about this. I think we probably use 4 or 5 of them at my work. Do you need to do this from a C program or would it make sense to run a program on the IBM system that sends the spool file out instead?
Are you using anything from C to call AS programs currently? Your best best is to do like Mike suggested and call a program already on the to convert the spool file to a shared IFS directory. fil
From that point, you can grab the file from that shared IFS directory in C. I would recommend go out both parts separately before you merge them into a single program. Figure out the command you need to run on the by doing it manually in the green screen.
Then, put a file in a shared directory and test pulling that into your program.
At the end, you can put those together. Maybe someone has a hint?
IBM i: Converting a spooled file to PDF
What information are you trying to get from the spooled file? An AFP fIle has an intricate format. Sign up or log in Sign up using Google. Sign up using Facebook.
Exporting a spooled file to your PC
Sign up using Email and Password. Post as a guest Name.