× 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.


  • Subject: RE: Externally Described files & RPG IV
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 30 Jul 1998 13:08:28 -0500

Define the two files (I'm guessing a physical and logical, or two
different logicals) but rename the format name on the F Spec like this:

 FARFILE1   UF   E           K DISK                               
 FARFILE2   IF   E           K DISK    RENAME(RARFILE:RARFILE2)   

You can only have one format name the same.  Use the
RENAME(origformat:newformt) keyword to rename any others.  Don't forget
to refer to the correct format if doing a DELETE, UPDATE, or WRITE.
Also remember that if you read from one file, then from another, if you
don't rename or prefix the fields the data from the first read will be
overwritten with the second read.  You can use the PREFIX(x) keyword to
prefix files.  (Where x is the prefix).

Bradley V. Stone        
bvstone@taylorcorp.com
http://prairie.lakes.com/~bvstone/
"Closing my mouth before I scream.  No one can shake my self-esteem."
-YJM


> -----Original Message-----
> From: John Hall [SMTP:jhall@hillmgt.com]
> Sent: Thursday, July 30, 1998 12:07 PM
> To:   MIDRANGE-L@midrange.com
> Subject:      Externally Described files & RPG IV
> 
> Quick question.  I have a program which needs use multiple access
> paths
> into the same file.  Is there a way to use the same file on two
> different F-specs.  I know how to rename the Record and how to use
> OVRDBF to allow multiple accesses to the same file.
> 
> Do I have to create a dummy PF to allow the program to compile ?
> 
> John Hall
> Home Sales Co.
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.