CoolDudeeh
IS-IT--Management
Say I had some code like this that is reading the flat file below
if entry(5,recordin,",") = "e" then
assign entry(5,recordin,",") = "z".
on record 2, I get an error something like "entry 5 is outside the range ..."
Is there a way to test for the existence of an entry or the number of entries in a record?
flat file(3 records)
a,b,c,d,e
a,b,c,d
a,b,c,d,e
I also tried something like this which does not seem to work either.
def var xxtmp as char.
assign xxtmp = entry(5,recordin,",") no-error.
if xxtmp = "" then
assign entry(4,recordin,",") = entry(4,recordin,",") + ",e".
if entry(5,recordin,",") = "e" then
assign entry(5,recordin,",") = "z".
on record 2, I get an error something like "entry 5 is outside the range ..."
Is there a way to test for the existence of an entry or the number of entries in a record?
flat file(3 records)
a,b,c,d,e
a,b,c,d
a,b,c,d,e
I also tried something like this which does not seem to work either.
def var xxtmp as char.
assign xxtmp = entry(5,recordin,",") no-error.
if xxtmp = "" then
assign entry(4,recordin,",") = entry(4,recordin,",") + ",e".