ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Creating logical file.

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

  • Creating logical file.

    I'm a little bit confused - how to define record format in logical file ?
    how do you define this ?

    cause when I use R ABC (PFILE ABC) i get error while CRTLF
    and when I use R ABC1 (PFILE ABC) it compiles but I get error while compiling program (record format already defined).

    Please help.

  • #2
    Re: Creating logical file.

    Code:
    ...when I use R ABC (PFILE ABC) i get error while CRTLF
    It's not clear how we can help without knowing what error you're getting. (I suspect that the record format name can't be used because a definition already exists in the environment, but we can't tell what already exists on your system.)

    (record format already defined).
    That helps a little. If a record format name is used in another file in the program, you can't use the same name again in a different place in that program. The compiler won't know which record is being referenced.
    Tom

    There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

    Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

    Comment

    Working...
    X