AS400 CONVERT SPOOL FILE TO PDF

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.

Author: Vukasa Mezigore
Country: Bahrain
Language: English (Spanish)
Genre: Science
Published (Last): 25 January 2017
Pages: 402
PDF File Size: 16.77 Mb
ePub File Size: 2.91 Mb
ISBN: 525-1-33726-173-7
Downloads: 98939
Price: Free* [*Free Regsitration Required]
Uploader: Aragor

sponsored links

By using our site, fi,e acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. I’m trying to code a console application to get the spool file from as to a different destination as a text file.

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)

I get the error directly when calling the API, this is not an error message during the work of the call. Changing the parameters don’t change the error message. I found out the mistake. Despite the misleading error message, it was an authorization problem. I wasn’t allowed to call the APIs. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

  EMOS TS-ED1 PDF

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

  EDWARD KRICK INTRODUCCION ALA INGENIERIA PDF

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.

Email Filr, but never shown. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. Stack Overflow works best with JavaScript enabled.