|
What you could do if you have a webserver running on the as400 is make a cgi page to handle dynamic links. I would set it up this way: if you have 5 shipments that you want clickable tracking numbers for user Bob you could make a file to accept some variable like http://www.think-solutions.com/tracking.cgi?username=bob which would then take the username bob and show the 5 tracking numbers in a table or list. 1Z... 1Z... 1Z... 1Z... 1Z... each as links. You could have your program write these numbers to a PF file that the cgi program would read. Each record could be named that users name so it would be setup like this: BOB tnum1 = 1Z... tnum2 = 1Z... etc. then when the cgi program reads that file it could take each variable and use it to create the links. This is a little vague but I think I could be more specific if you need me to be. I am new at RPG programming so my coding looks a little more like php than rpg but I know something like this would work. On Wed, 2004-07-07 at 12:33, CWilt@xxxxxxxxxxxx wrote: > Only thing I could think of would be to create a batch file that accepts the > 5 tracking numbers > > You could put the batch file on a server, that way you won't need it on each > PC. The strpccmd then becomes > \\server\share\trackups.bat xxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxxxxx > xxxxxxxxxx > > the batch file can then be: > > start http:\\www.ups.com\tracking\...... > > whatever it needs. > > Depending on how the UPS web site handles the URL when you pass less than 5 > tracking numbers, you might have to do some additional work in your batch > file to find the parms that are empty. > > > Other option: > The newer 5250 emulators can recognize a web URL and create a hotspot for > it. Haven't used this myself, but you might be able to use this > functionality instead of STRPCCMD. Your users would need to use the mouse > to click the URL hotspot on the green screen. > > HTH, > Charles > > > > -----Original Message----- > > From: fraser@xxxxxxxxxxxx [mailto:fraser@xxxxxxxxxxxx] > > Sent: Wednesday, July 07, 2004 11:56 AM > > To: rpg400-l@xxxxxxxxxxxx > > Subject: STRPCCMD > > > > > > I am writing a program that will allow users to view UPS's > > tracking system > > on the web from a RPGIV program. I have been successful when > > there has been > > only one tracking number. I use the STRPCCMD command to initiate the > > process. However, when trying to use multiple tracking > > numbers the PCCMD > > parameter exceeds 123 characters and the program > > malfunctions. Has anyone > > had any kind of experience with this and can tell me how to > > possibly get > > around this problem? Thanks. > > > > Gary Fraser > > IS Manager > > Peerless-Winsmith Inc. > > (716) 592-9310 x527 > > fraser@xxxxxxxxxxxx > > > > -- > > This is the RPG programming on the AS400 / iSeries (RPG400-L) > > mailing list > > To post a message email: RPG400-L@xxxxxxxxxxxx > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > > or email: RPG400-L-request@xxxxxxxxxxxx > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/rpg400-l. > > > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.