Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

as400

    Sponsored Links

    Next

  • 1. iSeries Performance: Component Report at V5R4
    Dear List, Would anyone out there happen to have a sample query which would generate the same output as the component report, in particular the interval data? TIA Reeve
  • 2. Need Secondary Language Swedish V5R3M0
    Hallo, I cuctomer is looking for Swedish secondary language for V5R3M0.. and, like always... he needs it yesterday.... so it is ordered , but can someone in this world provide a CD image to spped delivery up Greetings from Germany Fred

Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Kim » Fri, 18 Dec 2009 08:14:30 GMT

Last week we upgraded our i5/OS to V6R1.

To set up my dilemna - here's what we have:

A CL program that has several OVRPRTF statements, some which include
overlays. It calls an RPG program "COMMREPORTS".

COMMREPORTS is an RPGLE program that processes commission reports for
salesmen, the output being written via an EXCEPT to an O-spec. The
RPGLE program is called once from the CL, and all commission reports
for all salesmen are processed within this one call.

The reports are then printed from the output queue & mailed to the
salesmen.

Our objective -- to go paperless.

I created a printer file (QIPDS in MYLIB) with DEVTYPE *AFPDS, and
Workstation customizing object (WSCST) of *PDF. We made a change to
the OVRPRTF statements in the CL to use the new printer file, and to
place the output in the IFS.  Our OVRPRTF statement looks like this:

OVRPRTF    FILE(LASER) TOFILE(MYLIB/QIPDS) LPI(8) CPI(12) OVRFLW(62) +
           FONT(281) PAGRTT(90) DUPLEX(*YES) FRONTOVL(CMLIB/AGTSTMTO
0 .30) +
           BACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(COMMSTMTS) +
           TOSTMF('\home\kgibson') SECURE(*YES)

This is working beautifully, placing the output into PDF format in the
IFS. The PDF looks terrific, and even contains the overlay. It was so
easy! Woohoo!

Then the questions began to arise. Here are a few examples of the
filenames that were generated from the RPG program to the above LASER
override:

LASERtfDwBt.pdf
LASER$XL11G.pdf
LASERfw46BX.pdf

These filenames don't mean anything to me. I'd like to have the
salesman number associated with the PDF report to be included in the
filename so I can tell where this file needs to go.

Can we control the name of the file and the location within the IFS
from within the RPG program? I'm not very API-savvy, and in looking at
Scott Klement's online IFS tutorial, I'm thinking that we might have
to s{*filter*}our O-specs in order to control the name of the file &
location. That's a last resort--the output and overlay is complex, and
works really well. I'd hate to have to reinvent the wheel here.

Does anyone have any ideas?

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Ad » Sat, 19 Dec 2009 02:23:55 GMT


 XXXX@XXXXX.COM :

perhaps something like 

TOSTMF(home/kgibson<.pdf


-- 
Ad,

pas de proble, que des solutions

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Kim » Sat, 19 Dec 2009 02:52:04 GMT

n Dec 17, 10:23m, Ad < XXXX@XXXXX.COM > wrote:
> > 0 .3>)>+
> > ACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(COM>S>MTS) +
> > OSTMF('\home\kgibson'> S>C>RE(*YES)
>
> > This is working beautifully, placing the output into PDF>f>rmat in the
> > IFS. The PDF looks terrific, and even contains the over>a>. It was so
> >>ea>y> Woohoo!
>
> > Then the questions began to arise. Here are a few e>a>ples of the
> > filenames that were generated from the RPG program to t>e>above LASER >> > >verride:
>
> > L>S>RtfDwBt.pdf
> > L>S>R$XL11G.pdf
> > L>SE>f>46BX.pdf
>
> > These filenames don't mean anything to me. I'd li>e>to have the
> > salesman number associated with the PDF report to be i>c>uded in the
> > filename so I can tell where this fil> n>e>s to go.
>
> > Can we control the name of the file and the location >i>hin the IFS
> > from within the RPG program? I'm not very API-savvy, and>i> looking at
> > Scott Klement's online IFS tutorial, I'm thinking that>w> might have
> > to s{*filter*}our O-specs in order to control the name>o> the file &
> > location. That's a last resort--the output and overlay i> >omplex, and
> > works really well. I'd hate to have to reinvent t>e >h>el here.
>
> > Does anyone h>ve>any ideas?
>
> perhaps >om>thing like
>
> TOSTMF(lt;home/kgibson>> > --
> Ad,
>
> pas de proble, que des solutions- Hi>e >uoted text -
>
> - Show quoted text -

Thanks for the response, Ad.

The print override is in the CL, and I don't have the salesman numbers
when creating the override. The RPG program loops through all of the
salesman numbers, generating a commission report for each. Can I
change the print override in the RPG program? I'd need to do so before
the O-specs are written.

In the meantime, I've been reading through the InfoPrint Server for
iSeries User's Guide (G544-5775), and it looks as if a mapping program
might be an option. Quoting page 63, "Setting up Your PSF
Configuration Object":

"Do you want to specify options only available with a mapping program?
Some such options are:
PDF file name
Full control over PDF file location in the integrated file system
cc, bcc, reply to e-mail addresses
E-mail subject text
Encryption of e-mailed PDF
Files to include in the body of the e-mail or to attach to the e-
mail
Intelligent routing of segments; that is, doing something different
with each segment

If so, specify a mapping program on the PDFMAPPGM parameter."

So do I call this mapping program prior to the EXCEPT statement?
Afterwards? Still researching.

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby trans am kid » Sat, 19 Dec 2009 03:44:04 GMT

f you get no where, take a look at autodoc hse (www.iddata.nl) I use
this program to create all my pdf's from the i, and I can pass to it
the file name and with the various folder options, store it wherever
so if I want one folder say for sales reports, no problem, another
folder for this that or the other, no problem. And you determine the
location at the time the program runs. Neat thing is say that you have
a file with 200 invoices in it, you can put every invoice in its own
file. You can also fax and email with it. The autodoc hse runs on the
pc but you can either use it directly as a print device as I
understand it or you can run it as the recipient of a tn5250e printer
(which is what I do). So I can date them, name them, file them where I
want.

It works pretty good.




On Dec 17, 12:52m, Kim < XXXX@XXXXX.COM > wrote:
> > > 0 .3>)>+> > > > ACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(COM>S>M>S) +
> > > OSTMF('\home\kgibson'> S>C>R>(*YES)
>
> > > This is working beautifully, placing the output into PDF>f>r>at in the
> > > IFS. The PDF looks terrific, and even contains the over>a>.>It was so
> > >>ea>y> >oohoo!
>
> > > Then the questions began to arise. Here are a few e>a>p>es of the
> > > filenames that were generated from the RPG program to t>e>a>ove LASER
>>> > >v>rride:
>
> > > L>S>R>fDwBt.pdf
> > > L>S>R>XL11G.pdf
> > > L>SE>f>4>BX.pdf
>
> > > These filenames don't mean anything to me. I'd li>e>t> have the
> > > salesman number associated with the PDF report to be i>c>u>ed in the
> > > filename so I can tell where this fil> n>e>s>to go.
>
> > > Can we control the name of the file and the location >i>h>n the IFS
> > > from within the RPG program? I'm not very API-savvy, and>i> >ooking at
> > > Scott Klement's online IFS tutorial, I'm thinking that>w> >ight have
> > > to s{*filter*}our O-specs in order to control the name>o> >he file &
> > > location. That's a last resort--the output and overlay i> >o>plex, and
> > > works really well. I'd hate to have to reinvent t>e >h>e> here.
>
> > > Does anyone h>ve>a>y ideas?
>
> > perhaps >om>t>ing like
>
> > TOSTMF(lt;home/kgibson>.>d>
> >> > >-
> > Ad,
>
> > pas de proble, que des solutions- Hi>e >u>ted text -
>
> > - Sh>w >uoted text -
>
> Thanks for t>e >esponse, Ad.
>
> The print override is in the CL, and I don't have the >alesman numbers
> when creating the override. The RPG program loops th>ough all of the
> salesman numbers, generating a commission report>for each. Can I
> change the print override in the RPG program? I'd need>to do so before
> the O-sp>cs>are written.
>
> In the meantime, I've been reading through the Info>rint Server for
> iSeries User's Guide (G544-5775), and it looks as if a>mapping program
> might be an option. Quoting page 63, "Set>ing up Your PSF
> Config>ra>ion Object":
>
> "Do you want to specify options only available with a >apping program?
> Some s>ch options are:
> Full control over PDF file location in the inte>rated file system
> cc, bcc, reply >o e-mail addresses
> gt;E-mail subject text
> Encry>tion of e-mailed PDF
> Files to include in the

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Ad » Sat, 19 Dec 2009 04:12:03 GMT

im < XXXX@XXXXX.COM > wrote in news:17e8e27b-8d9c-465f-878b-76e2cb1780f6
@r14g2000vbc.googlegroups.com:

> /AGTS>>T>
>> > 0 .3>> >
>> > ACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(CO>MSTM>>)>
> +
>> > OSTMF('\home\kgibson'>>SE>>R>(*YES)
>>
>> > This is working beautifully, placing the output into PDF>>o>mat in the
>> > IFS. The PDF looks terrific, and even contains the over>>y> It was so
>> >>>as>> >oohoo!
>>
>> > Then the questions began to arise. Here are a few e>>m>les of the
>> > filenames that were generated from the RPG program to t>> >bove LASER
>>
>> > L>>E>tfDwBt.pdf
>> > L>>E>$XL11G.pdf
>> > L>>ER>>4>BX.pdf
>>
>> > These filenames don't mean anything to me. I'd li>> >o have the
>> > salesman number associated with the PDF report to be i>>l>ded in the
>> > filename so I can tell where this fil>>ne>>s>to go.
>>
>> > Can we control the name of the file and the location >>t>in the IFS
>> > from within the RPG program? I'm not very API-savvy, and>>n>looking at
>> > Scott Klement's online IFS tutorial, I'm thinking that>>e>might have
>> > to s{*filter*}our O-specs in order to control the name>>f>the file &
>> > location. That's a last resort--the output and overlay i>>c>mplex, and
>> > works really well. I'd hate to have to reinvent t>> w>>e> here.
>>
>> > Does anyone h>>e >>y ideas?
>>
>> perhaps >>me>>ing like
>>
>> TOSTMF(lt;home/kgibson>.>>f
>>> >>>--
>> Ad,
>>
>> pas de proble, que des solutions- Hi>> q>>ted text -
>>
>> - Sh>w q>oted text -
>
> Thanks for t>e r>sponse, Ad.
>
> The print override is in the CL, and I don't have the >alesman numbers
> when creating the override. The RPG program loops th>ough all of the
> salesman numbers, generating a commission report>for each. Can I
> change the print override in the RPG program? I'd need>to do so before
> the O-sp>cs >re written.
>
> In the meantime, I've been reading through the Info>rint Server for
> iSeries User's Guide (G544-5775), and it looks as if a>mapping program
> might be an option. Quoting page 63, "Set>ing up Your PSF
> Config>rat>on Object":
>
> "Do you want to specify options only available with a >apping program?
> Some s>ch options are:
> Full control over PDF file location in the inte>rated file system
> cc, bcc, reply >o e-mail addresses
> gt;E-mail subject text
> Encry>tion of e-mailed PDF
> Files to include in the body of the e-mail >r to at>ach to the e-
> mail
> Intelligent routing of segments; that is, do>ng something differe>t
>
> If so, specify a mapping program on th> PD>MAPPGM parameter."
>
> So do I call this mapping program prior t> the EXCEPT statement?
> Afterwards? Still researching.

I know nothing about how it works in RPG,
in speudo code it should look like

for each salesman
ovrprtf
open prtf
print report
close prtf

The procedure you use now is included in V6R1 (5761TS1)

InfoPrint Server (5722IP1) is much more powerfull but you have to buy it.


--
Ad,

pas de proble, que des solutions

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby that 1 guy » Sat, 19 Dec 2009 04:20:40 GMT

You could tave your RPGLE program, each time there is a new salesman,
call a CL (passing the Salesman ID to the CL) to perform the "TOSTMF(
home/kgibson<.pdf" that Ad mentioned.  The CL only
needs called from the RPGLE when Salesman number changes.

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby jsev99 » Sat, 19 Dec 2009 05:02:20 GMT

n Dec 18, 6:52m, Kim < XXXX@XXXXX.COM > wrote:
> > > 0 .3>)>+> > > > ACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(COM>S>M>S) +
> > > OSTMF('\home\kgibson'> S>C>R>(*YES)
>
> > > This is working beautifully, placing the output into PDF>f>r>at in the
> > > IFS. The PDF looks terrific, and even contains the over>a>.>It was so
> > >>ea>y> >oohoo!
>
> > > Then the questions began to arise. Here are a few e>a>p>es of the
> > > filenames that were generated from the RPG program to t>e>a>ove LASER
>>> > >v>rride:
>
> > > L>S>R>fDwBt.pdf
> > > L>S>R>XL11G.pdf
> > > L>SE>f>4>BX.pdf
>
> > > These filenames don't mean anything to me. I'd li>e>t> have the
> > > salesman number associated with the PDF report to be i>c>u>ed in the
> > > filename so I can tell where this fil> n>e>s>to go.
>
> > > Can we control the name of the file and the location >i>h>n the IFS
> > > from within the RPG program? I'm not very API-savvy, and>i> >ooking at
> > > Scott Klement's online IFS tutorial, I'm thinking that>w> >ight have
> > > to s{*filter*}our O-specs in order to control the name>o> >he file &
> > > location. That's a last resort--the output and overlay i> >o>plex, and
> > > works really well. I'd hate to have to reinvent t>e >h>e> here.
>
> > > Does anyone h>ve>a>y ideas?
>
> > perhaps >om>t>ing like
>
> > TOSTMF(lt;home/kgibson>.>d>
> >> > >-
> > Ad,
>
> > pas de proble, que des solutions- Hi>e >u>ted text -
>
> > - Sh>w >uoted text -
>
> Thanks for t>e >esponse, Ad.
>
> The print override is in the CL, and I don't have the >alesman numbers
> when creating the override. The RPG program loops th>ough all of the
> salesman numbers, generating a commission report>for each. Can I
> change the print override in the RPG program? I'd need>to do so before
> the O-sp>cs>are written.
>
> In the meantime, I've been reading through the Info>rint Server for
> iSeries User's Guide (G544-5775), and it looks as if a>mapping program
> might be an option. Quoting page 63, "Set>ing up Your PSF
> Config>ra>ion Object":
>
> "Do you want to specify options only available with a >apping program?
> Some s>ch options are:
> Full control over PDF file location in the inte>rated file system
> cc, bcc, reply >o e-mail addresses
> gt;E-mail subject text
> Encry>tion of e-mailed PDF
> Files to include in the body of the e-mail >r to at>ach to the e-
> mail
> Intelligent routing of segments; that is, do>ng something differe>t >> with each segment
>
> If so, specify a mapping program on th> P>FMAPPGM parameter."
>
> So do I call this mapping program prior t> the EXCEPT statement?
> Afterwards? Still researching.


Just a couple of thoughts:

There's no reason why you can't move the OVRPRTF to the RPG program.
You could either create a small CL module that performed this and then
call it or just call QCMDEXC within RPG to do it. You'd have:
OVRTPRTF
do your printing here
DLTOVR *PRTF

I'm surprised your OVRPTRF actually works. As far as I'm aware,
windows is the only OS that uses backward slashes ('\') to separate
directories, all others user forward slashes

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Murray Bob » Sun, 20 Dec 2009 03:08:17 GMT


> 0 .3>) +
> ACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(COM>STMTS) +
> OSTMF('\home\kgibson'> S>CURE(*YES)
>
> This is working beautifully, placing the output into PDF>format in the
> IFS. The PDF looks terrific, and even contains the over>ay. It was so
>>ea>y! Woohoo!
>
> Then the questions began to arise. Here are a few e>amples of the
> filenames that were generated from the RPG program to t>e above LASE>
>
> L>SERtfDwBt.pdf
> L>SER$XL11G.pdf
> L>SE>fw46BX.pdf
>
> These filenames don't mean anything to me. I'd li>e to have the
> salesman number associated with the PDF report to be i>cluded in the
> filename so I can tell where this fil> n>eds to go.
>
> Can we control the name of the file and the location >ithin the IFS
> from within the RPG program? I'm not very API-savvy, and>in looking at
> Scott Klement's online IFS tutorial, I'm thinking that>we might have
> to s{*filter*}our O-specs in order to control the name>of the file &
> location. That's a last resort--the output and overlay i> complex, and
> works really well. I'd hate to have to reinvent t>e >heel here.
>
> Does anyone have any ideas?

If you are interested in a software solution, check out www.octotools.com
..  We can easily format the outout into PDF and print, take any part
of the input file and create meaningful file names.

For example using your example, if salesman name or number is in the
body of the report we can store it by salesman, then subdirectory
contailing report name and date of report.
For invoices we can store by account as  the main dir and files within
an account of invoice number and invoice date.   We will interface
with IFS.  We can also email out PDFs directly to each person or
account with or without PDF encryption with individual passwords.

Regards,
Murray
978-535-7676

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Kim » Wed, 23 Dec 2009 07:32:06 GMT

n Dec 17, 1:02m, jsev99 < XXXX@XXXXX.COM > wrote:
> > > > OSTMF('\home\kgibson'> S>C>R>(>YES)
>
> > > > This is working beautifully, placing the output into PDF>f>r>a> in the
> > > > IFS. The PDF looks terrific, and even contains the over>a>.>I> was so
> > > >>ea>y> >o>hoo!
>
> > > > Then the questions began to arise. Here are a few e>a>p>e> of the
> > > > filenames that were generated from the RPG program to t>e>a>o>e LASER
> >>> > >v>r>ide:
>
> > > > L>S>R>f>wBt.pdf
> > > > L>S>R>X>11G.pdf
> > > > L>SE>f>4>B>.pdf
>
> > > > These filenames don't mean anything to me. I'd li>e>t> >ave the
> > > > salesman number associated with the PDF report to be i>c>u>e> in the
> > > > filename so I can tell where this fil> n>e>s>t> go.
>
> > > > Can we control the name of the file and the location >i>h>n>the IFS
> > > > from within the RPG program? I'm not very API-savvy, and>i> >o>king at
> > > > Scott Klement's online IFS tutorial, I'm thinking that>w> >i>ht have
> > > > to s{*filter*}our O-specs in order to control the name>o> >h> file &
> > > > location. That's a last resort--the output and overlay i> >o>p>ex, and
> > > > works really well. I'd hate to have to reinvent t>e >h>e> >ere.
>
> > > > Does anyone h>ve>a>y>ideas?
>
> > > perhaps >om>t>i>g like
>
> > > TOSTMF(lt;home/kgibson>.pd>gt; >>
> >>> >-> >
> > > pas de proble, que des solutions- Hi>e >u>t>d text -
>
> > > - Sh>w >u>ted text -
>
> > Thanks for t>e >e>ponse, Ad.
>
> > The print override is in the CL, and I don't have the >a>esman numbers
> > when creating the override. The RPG program loops th>o>gh all of the
> > salesman numbers, generating a commission report>f>r each. Can I
> > change the print override in the RPG program? I'd need>t> do so before
> > the O-sp>cs>a>e written.
>
> > In the meantime, I've been reading through the Info>r>nt Server for
> > iSeries User's Guide (G544-5775), and it looks as if a>m>pping program
> > might be an option. Quoting page 63, "Set>i>g up Your PSF
> > Config>ra>i>n Object":
>
> > "Do you want to specify options only available with a >a>ping program?
> > Some s>c> options are:
> > > PDF file name
> > Full control over PDF file location in the inte>r>ted file system
> > cc, bcc, reply >o>e-mail addresses
> > gt;E>mail subject text
> > Encry>t>on of e-mailed PDF
> > Files to include in the body of the e-mail >r>to atta>h>to the e-
> > mail
> > Intelligent routing of segments; that is, do>n> something different> >>>>with each segment
>
> > If so, specify a mapping program on th> P>F>APPGM parameter."
>
> > So do I call this mapping program prior t> >he EXCEPT statement?
> > Afterwa>ds> Still researching.
>
> Jus> a>couple of thoughts:
>
> There's no reason why you can't move the OVRP>TF to the RPG program.
> You could either create a small CL module that >erformed this and then
> call it or just call QCMDEXC within RPG>to do it. gt;ou'd have:
> OVRTPRTF
>>do your print&g

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby Richard Schoen » Wed, 23 Dec 2009 13:01:15 GMT

f you a need some native iSeries tools for distributing the PDF files you
create on V6R1, check out our web site or feel free to contact me.

We have a product that can auto-distribute documents created by InfoPrint
Server or via the new OVRPRTF *AFPDS functionality.

Regards,
Richard Schoen
RJS Software Systems Inc.
"Get the information you need. Now!"
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: XXXX@XXXXX.COM
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT


"Kim" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
On Dec 17, 10:23 am, Ad < XXXX@XXXXX.COM > wrote:
>> > --> > Ad,> >> > pas de proble, que des solutions- Hide quoted text -> >> > - Show quoted text -

Thanks for the response, Ad.

The print override is in the CL, and I don't have the salesman numbers
when creating the override. The RPG program loops through all of the
salesman numbers, generating a commission report for each. Can I
change the print override in the RPG program? I'd need to do so before
the O-specs are written.

In the meantime, I've been reading through the InfoPrint Server for
iSeries User's Guide (G544-5775), and it looks as if a mapping program
might be an option. Quoting page 63, "Setting up Your PSF
Configuration Object":

"Do you want to specify options only available with a mapping program?
Some such options are:
PDF file name
Full control over PDF file location in the integrated file system
cc, bcc, reply to e-mail addresses
E-mail subject text
Encryption of e-mailed PDF
Files to include in the body of the e-mail or to attach to the e-
mail
Intelligent routing of segments; that is, doing something different
with each segment

If so, specify a mapping program on the PDFMAPPGM parameter."

So do I call this mapping program prior to the EXCEPT statement?
Afterwards? Still researching.



Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby yl_mra » Thu, 31 Dec 2009 12:16:38 GMT

> I'm surprised your OVRPTRF actually works. s far as I'm aware,

The 'root' directory and all subdirectories, unless otherwise
designated by an IBM named subdirectory specific to a different file
system, function as PC directories in the IFS file system. So, the pdf
files are stored in a directory that behaves like a PC directory
except, as a convince to users, IFS tolerates either forward or
backward slashes. Specifying a different file system, QOpenSys, for
example puts you into a POSIX file system which follows different
rules. For example, whereas the PC file system is case insensitive,
the POSIX file system is case sensitive.

Re: Ideas Needed - V6R1 - Creating a PDF & storing it in the IFS

Postby yl_mra » Thu, 31 Dec 2009 12:40:57 GMT

> OVRPRTF ILE(LASER) TOFILE(MYLIB/QIPDS) LPI(8) CPI(12) OVRFLW(62) +
>> ONT(281) PAGRTT(90) DUPLEX(*YES) FRONTOVL(CMLIB/AGTS>MTO
> 0 .3>) +
> ACKOVL(CMLIB/AGTSTMTO 0 .30) USRDTA(COM>STMTS) +
> OSTMF('\home\kgibson'> SECURE(*YES)
>

A couple of ideas. But first, be aware that, since you are writing to
a PC type of directory in the IFS the letters are case insensative. As
a result, you are accessing the same file whether you use capital,
lower case or mixed case letters in the file and/or directory name.

1. You could write a 2nd CL, or other, program to move (copy and
delete) all of the generated files to a directory with the name, or
encoded name, of the sales person after time the RPG program prints a
pdf file. You would pass the sales person's name to the 2nd CL program
and the program would insure that the directory existed before doing
the copy. If I were doing this, I would write the 2nd CL program as an
exit program so that the RPG program always called it but, if the exit
program did nothing, the RPG program would function as it currently
does. Then, the exit program can be slowly developed and expanded to
provide the needed and altered for other purposes later.

2. You could change the RPG program to write one file with headers/
separators between sales person's information and then, as a post
process, run a utility that separated each of the master file sections
into separately names files.

The idea of using the OVRTPRTF in the RPG program, or adding an exit
program to do it, also seems promising.

Best of luck.

Similar Threads:

1.Create either an RPG or CL program to Print a PDF residing on IFS

I just been told by my boss that we need to implement the following.

We have a RPG program that prints out an order (in-house built). 
However, now the management wants a PDF document (residing on the IFS) 
that contains product information.

Is there a way to take the input field from the RPG program, add the 
extension .PDF and search and print the PDF file off of the IFS?

Can someone give me a CL script or other script that can be used?

Thank you very much in adavance for your help.

I searched the newsgroup about the IFS and some uses FTP and other use 
the Start PC command.  I the Start PC command would be the right 
direction to go, it is only that the Input field in the RPG needs to be 
passed to the CL variable to retrieve the associated PDF file required.

Gil

2.Convert AFPDS Spoolfile with Overlay to a PDF into the IFS

I am in need of converting a Spoolfile AFPDS with an Overlay to a PDF
into the IFS...  Anyone doing this already and any help/suggestions
would be great!

Thanks
John Major

3.Infoprint Server or move PDF's from IFS to OUTQ (requeue)

hello!

i have a question dealing with the Infoprint Server from IBM on an
AS400.

A thirdparty application creates pdf files and stores them on our IFS
on the AS400. is there a way with Infoprint Server to move file from
the IFS to an OUTQ?

i read that IBM Redpaper about the Inforprint Server. "Re-queue print
files or segments as PDF for printing" is mentioned in this book, but i
cant figure out how to solve my problem to Re-queue PDF's from the IFS
to an Printer OUTQ.

Is there a possibility to do this? Do i need the Infoprint Server for
this, or can i solve this problem otherwise?

Would appreciate every tip!

Thanks in Advance, Lagger C.

4.Problem with creating PDF through Infoprint Server

Hi together!

We use Infoprint Server for creating PDF's. I have created one Printer 
for creating PDF's in IFS and another one for sending them per email. We 
have some strange problems with this printer's.
Sometimes some spools are not printed and sended per email. This happens 
randomly. If you have five spools for example it could be that the third 
one is not printed but the other four are sended correctly per email.
Another problem is that sometimes the printers are not started correctly 
after IPL. When I look to the job in subsystem QSPL I see that the error 
is "TCP/IP error for device ..., port ..." (translated from german). The 
failure code is 02 (Binding to socket). (Message-ID: IPS5066)
I used always the same port for all my pdf-printers (port 13001). Do I 
have to use a seperate port for every printer?
Any ideas what I can do to find out what the problem is!?

cu
Martin

5.Create object in IFS?

I got a wild hair this morning and decided I finally wanted to find the
answer to something that has been bothering me.

Is there any command to simply create an object in the IFS? I find ways to
copy to them, move them, delete them, but nothing that simply creates a file
in the IFS. EDTF will create a new one, but it seems odd to have to use an
editor to create the object. Don't ask "why" I would want to create an empy
object without editing it or copying something to it... it's an academic
question at this point.

 - Virgil


6. IFS - Wrong "Date Created"

7. Table definition for Storing a PDF page

8. Need User Guide .pdf file for Tiger Woods PGA Tour 2005 - PC Game



Return to as400

 

Who is online

Users browsing this forum: No registered users and 75 guest