Thanks for your reply Paul
Again - my sincere apologies, but I now think that I have my head screwed on right (hopefully)
I need to ask a different question
Is there a command or api that I can use within a program, to determine the device type (DEVTYPE) of a print file?
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of paul therrien
Sent: Friday, December 30, 2011 10:00 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Using 2 external print files in one program
You can rename the record format in RPG. Instead of attempting to 'prefix'
it.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Friday, December 30, 2011 8:39 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Using 2 external print files in one program
Morning all
We have a program (PROGA) that uses an external print file (PRTF01 - ipds) which is also used in other programs.
There is a need to change PROGA to use a second print file (PRTF02 - afpds).
This second print file is also used in other different programs.
My predicament is that there are field names and record names in BOTH print files that are the same.
I attempted to use prefix on the PRTF02 but that doesn't work on record names I thought of the following remedies :- Changing the field names and record names in PRTF02 - this will also mean changing ALL the other programs that use this print file.
Creating a copy of PROGA that uses PRTF02 instead of PRTF01 - this will mean changing the program(s) that call PROGA to somehow recognize whether or not to call PROGA and/or PROGB. Using this method will mean that any future changes MAY need a change to BOTH programs As always, any and all suggestions will be gratefully appreciated
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.