ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

EXTFILE Use / Any other better way

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

  • EXTFILE Use / Any other better way

    Hi,
    I am working on a program and it goes like below:-
    1) It will read a definition file which have library name/file name in it ( around 50 different files)
    2) Now based on the data received from external application i have to populate one of the file from step 1)
    3) Now once i figure out which file to populate can i use EXTFILE(variable name) and populate that file name in variable in EXTFILE keyword using usropn and then open and close. and do the same step again and again with different file names?

    I do understand i have to declare a dummy file in rpgle, is there any other better way of handling above case?

  • #2
    As long as all the files have the same definition this is fine. Just point the compiler at any file with the correct definition.

    Comment

    Working...
    X