Here I'm back for an other question.
 
Now, with Easy400Group help, I can create PDF files from my web programs into an IFS directory.
The next level I'd like to reach is to allow the user to obtain his file (and only his file).
 
For that, I've imagined to open directly the PDF file in the browser after its creation but I don't see how I can do that from a CGIDEV program.
Has someone ever done that? Can a php include command be used? If it can, I could generate php script (but without .php suffix, will it work?)
 
If opening the PDF file is not possible, another solution could consist in displaying a link (<a href="" but this causes a security problem. The user will be able to see the path of the file and then visit the whole directory. How could this kind of solution be secured?
 
If you know how I can resolve this problem, have examples that correspond to what I'm looking for, don't hesitate...
 
Many thanks.
 
 
-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED]De la part de Richard ECUYER
Envoyé : jeudi 24 novembre 2005 13:00
À : [email protected]
Objet : Re: [Easy400Group] CGIDEV2 problem

Hi,
If you make an OVRPRTF with SPLFOWN(*JOB) all will be find.                     
----- Original Message -----
From: lpt_fr
Sent: Thursday, November 24, 2005 12:09 PM
Subject: [Easy400Group] CGIDEV2 problem

Hello,

I'm writing a few programs that will allow users to obtain pdf files
from spools via a web interface.

Using CGIDEV2, i've created an HTML form where they choose the
printing they want. When they submit the form, I'm calling a CL
program that:
1) override the spool file (I'm changing the outq and the spool name)
2) call an RPGLE which write this spool file
3) use a utility called CVT2CMD. This utility copies the spool file
into a PDF file.

When I call the CL program from my 5250 session, all work well.
When this CL program is called by my HTML form, an error occurs in
point 3): spool file not found. In fact, the spool file has been
created in the outq but under a job name that is not the same as the
job of the CL.

For the CL program, i've got 296160/QTMHHTTP/GESDASWEBA.
For the spool, 231314/QTMHHTP1/QPRTJOB.

As the CVT2CMD requires the job name to copy the spool (like the
CPYSPLF command), I let the default value * which does not correspond
to the spool job name.

Can someone explain me why my spool is created with an other job name?
How can i resolve my problem?

Thanks





SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer


YAHOO! GROUPS LINKS




Reply via email to