× 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: CPYF RCDFMT parm
  • From: "Peter Dow" <pcdow@xxxxxxxxxxxxxxx>
  • Date: Wed, 3 Jan 2001 12:54:19 -0800

Hi Dan,

AFAIK, it wouldn't apply to a physical file, at least I don't know how you
could define a multi-format physical file.  However, you can have a
multi-format logical file, such as the hdr/detail example you gave. In that
case they would be "described" (as opposed to "non-described"), and each
format would have a name:

HDRFILE:
    A    R HDRFMT
    A      HDRFLD1        10A
    A      HDRFLD2        15A

DTLFILE:
    A    R DTLFMT
    A      DTLFLD1        5A
    A      DTLFLD2        7A

HDRDTLFILE:
    A    R HDRFMT            PFILE(HDRFILE)
    A    R DTLFMT            PFILE(DTLFILE)

When copying the HDRDTLFILE, you could specify either format or *ALL. When
reading the HDRDTLFILE in an RPG program, you could:

    C        READ  HDRFMT

or  C        READ  DTLFMT

or  C        READ  HDRDTLFILE
    then check the INFDS for the name of the format just read,
    or you could specify input specs with the name of the format and
(heresy) a record-identifying indicator.

HTH,
Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax


----- Original Message -----
From: <D.BALE@handleman.com>
To: <MIDRANGE-L@midrange.com>
Sent: Wednesday, January 03, 2001 11:50 AM
Subject: CPYF RCDFMT parm


> Can someone educate me how the RCDFMT parameter on the CPYF command is
used on
> a physical file?  Is this something that would be used for a
non-described,
> multi-format file (i.e., S/36-style Header & Detail formats combined into
one
> file)?
>
> The help on my v3r2 says:
>
>              Record format of logical file (RCDFMT) - Help
>
> Specifies, for copying from a database file only, the name of the record
> format that is copied.  If the from-file is not a logical or physical
file,
> *ONLY is the only value allowed.  A record format name is optional if the
> logical file has only a single record format, but either a format name or
*ALL
> must be specified if the from-file has more than one record
> format.
>
> The possible values are:
>
> *ONLY
>     The only record format in the from-file is copied.  When
>     the from-file is a logical file, this value is allowed
>     only if the file has a single record format.
>
>
> *ALL
>     All record formats in the logical from-file are used.
>
> record-format-name
>     Specify the name of the record format that is copied
>     when the from-file is a logical or physical file.
>
>
> Dan Bale
> IT - AS/400
> Handleman Company
> 248-362-4400  Ext. 4952
> +---
> | 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 ...

Replies:

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.