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):||28 July 2007|
|PDF File Size:||13.84 Mb|
|ePub File Size:||13.22 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.
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 convrrt 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.
Copy Spooled File (CPYSPLF)
It also seems like there are some classes to support Ass400 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. From that point, you can grab the file from that shared IFS directory in C.
I would recommend testing 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.
IBM i: Export a spooled file to your PC
At the end, you can put those together. Maybe someone has a hint? 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.