× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



All... sorry for the vagueness. I didn't completely understand what I wanted
to do myself.

As I thought about it on my way home (25% paying attention to driving, 75%
to figuring out a solution) I realized I forgot some important details.

To form the file name, we substring different parts of either the job name
and/or spool file name and the same for the path. The path will also have
some 'root' directory it is located in, as well as other paths beyond a
dynamic part (example: /folder1/xxx/foler2/xxxxxfolder3/, where the 'x's are
dynamic. Hope this makes things a bit more clear.

Now I was thinking of a database where I have the OUTQ specified. I was
thinking about a file such as this:

OUTQ            CONUMFLD        CONUMSTART      CONUMLEN        PGMNMFLD
PGMNMSTART      PGMNMEND        ROOTPATH        ....
OUTQ1           JOBNAME 1               3               SPOOLFILE       4
4               /FOLDER1/

Then have different outqs for each "type".


Definitions from previous message:
Process - section of code that does something (could be a subroutine or
subproceedure)
Dynamic - Write the code once and not have to change the program again

I hope I have made things clearer. I think I have covered most
possibilities.

-----Original Message-----
From: Wills, Mike N. (TC) [mailto:MNWills@taylorcorp.com]
Sent: Monday, April 01, 2002 6:05 PM
To: 'rpg400-l@midrange.com'
Subject: Making a program dynamic


I am going to probe the great minds on this list for some ideas....

I am looking at ways to make a program more dynamic. I have a program that
will monitor outqs for spool files through a dataq and kick off a processing
program. The processing program then runs hard-coded processes based on the
spool file information. Several processes could be the same or similar, but
they could also be very different. So every time I need to add another spool
file, I need to modify this program, recompile and test it. I would like to
try and make this program more dynamic to eliminate this need. Can this be
done either via RPG or Java?

What this processing program does is set up the information I need to create
the file name and path from the job and spool file information in the dataq
for me to make different files that are either located on the IFS or an FTP
server. I would prefer a RPG solution but would also do this in Java.

Thanks for any help,

Mike
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.