It is very rare to find any help for U2 Unidata/Universe database and searches online are not much of a help. So I am trying to make dynamic field change (based on input):
OPEN FILE.NAME TO WORKING.FILE ELSE STOP
READV FIELD_VAR FROM WORKING.FILE,RECORD.ID,FIELD.LOCATION THEN
PRINT FIELD_VAR
END ELSE
PRINT "No records found"
END
CLOSE WORKING.FILE
Problem is user executing this program don't know field location, field location could be 10, could be 5, could be any number (except 0 which is ID). I've been reading rocket documentation and I cannot find anything similar. Closest I've got was with writing query that looks like this:
SELECT DICT WORKING.FILE WITH @ID EQ 'FIELD.NAME'
LIST DICT WORKING.FILE LOC or ELE DICT WORKING.FILE where 2nd line shows location
This is a workaround that I just have to translate into code but I hope that there is something much easier then this.