ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Read Error In RPGLE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Read Error In RPGLE

    I had compared 2 PF's and store them in a *outfile which is program described (automatically generated by the CMPPFM CMD).

    Now i had to process this file as Input File in RPGLE program. In the F spec. i am using
    fxcmpln if f 256 disk

    Later in the code i am using following operations

    read xcmpln
    move xcmpln var1

    this gives following error:

    *RNF5183 30 19 001500 The file does not have Input specifications and the
    Result-Field is blank.

    *RNF7260 30 20 001600 The Factor 2 entry XCMPLN is not valid for the specified
    operation; the specification is ignored.

    What should i do to read and then process the file xcmpln ?

  • #2
    Just define pysical as external

    Somthing like this


    Code:
          *
          * Work File
          * ~~~~~~~~~
         FXCMPLN   uf a e           k disk    rename(XCMPLN : XCMPR)
         F                                     usropn
         F                                     prefix(x)
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment

    Working...
    X