I am brand new to RPG programming.
F/SPACE 2
FVSPerf IF E K Disk Prefix(s)
FVhipp O E Printer Prefix(rp) OfLInd(*IN90)
With the code above I am trying to define an external table file and prefix it. However when I try to set any fields from the Vhipp print file, like so:
Z-ADD 0 rpRpTot
I get a compile error stating: the name or indicator is not defined. This happens with all fields from Vhipp.
Am I missing something obvious here? My understanding of RPG is once you define an external files you can make reference to its fields, am I defining the file incorrectly?
Turns out I did not have key fields defined in working storage. Those keyfields are the used to populate Venshipp fields but since they were blank/null the table fields came back as being undefined.