15 pts.
 Open PDF on Web server from AS/400
Is it possible to open a document (i.e. .PDF)stored on a web server from the AS/400 ?

Software/Hardware used:
ASKED: February 18, 2009  2:43 AM
UPDATED: February 20, 2009  6:30 AM

Answer Wiki:
What are you wanting to do with the file? You could store a .PDF document in the IFS or as a binary large object in a data file, but it seems to me that because a .PDF is an image file, a character based emulator wouldn't be able to interpret it. But you can open other file types, such as a .TXT or .CSV, from the i, in many different ways. Otherwise, you'd need an application capable of reading and displaying a .PDF, and I don't know whether there is such software available for IBM i (fomerly OS/400). Otherwise, you'd have to create something, which is no small undertaking. And since Adobe already exists and is widely available, why would you need to?
Last Wiki Answer Submitted:  February 18, 2009  4:43 pm  by  Cwc   4,275 pts.
All Answer Wiki Contributors:  Cwc   4,275 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Yes, it is possible – but you won’t be opening it on the AS/400 per se.

You have to using iSeries Access for Windows. It still has some left over commands from the PC Support days.. Your program – running on the AS/400 and called by your interactive 5250 workstation session – will need to make two calls – to STRPCO and STRPCCCMD. Lots of references on the web to these, but basically, the STRPCO is Start PC Organizer (which you have to call first) – and the STRPCCMD allows you to run a command on your PC. The command would be whatever you need to do to open the PDF in question.

One caveat – I don’t think the STRPCCMD command supports long file names.

Regards
Mike

 2,725 pts.

 

Thanks for the responses. The files (PDF) will be stored on a web server. I have tried the command openning a file on my local C drive and it works, But will it work getting the file from a remote server?

The users accessing the file may not have client access installed. Most of our users access the system through a GUI via a web browser. Would the command still work in this case?

 15 pts.

 

Just read an article that may be helpful–

Calling a PC Application from RPG, Part II
Written by Thomas Snyder

http://www.mcpressonline.com/february-18-2009-vol-8-issue-4/programming/rpg/calling-a-pc-application-from-rpg-part-ii.html

 105 pts.

 

The STRPCCMD command only works if you have IBM Client Access installed on the client.

As far as your PDF’s if they are stored on a web server and you can access them via a web browser – then you should be able open them with STRPCCMD. Well, that’s the theory…

The MCPRESS article that Chance referenced is good. You should read it if you have not already.

Regards
Mike

 2,725 pts.