× 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: 'Record Format Selector Program': Re: Join & Update
  • From: "Scott Klement" <infosys@xxxxxxxxxxxx>
  • Date: 18 Oct 1999 17:37:29 -0500

When you write a new record to a multi-format logical file, you can
choose which record format is written to the file (and therefore
which physical file receives the insert/update operation) simply
by using the record format name, rather than the filename on your
WRITE statement, (or your output specs if you prefer except)

However, if you're using the file as a program described file, you
have no way of indicating WHICH format (and therefore which phy file)
the record is added to...

This is what 'record format selector programs' are for.  They let you
write a little program that selects which record format to write to,
based on the contents of the data thats being written.

This way your programs that use a program-description can continue to
run -- they dont have to be re-written to use the external description

For more info, see:
http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QBKAUC01/2.3.4.1


Rob Berendt <rob@dekko.com> wrote:
>
> What is a 'record format selector program'?  I've used multiformat
>  logicals before
> and don't recall this animal.
>
>
> infosys@klements.com on 10/18/99 03:12:43 PM
> Please respond to RPG400-L@midrange.com@Internet
> To: RPG400-L@midrange.com@Internet
> cc:
> Fax to:
> Subject: Re: Join & Update
>
> Jim,
>
> It seems to me that you probably want a multi-format logical, rather
> than a join logical....   With a multi-format logical, (and perhaps
> the help of a record format selector program -- at least temporarily
> you should be able to do what you're looking for...
>
> At least, if I understand what you're saying :)
>
>
>
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
>  RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
>  david@midrange.com
> +---
>
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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.