Does anyone know if it is possible to use a variable as part of a field name in RPG?
For example:
z-add 1 to Fn
read file1
dou eof
move field1 to detailFn
read file1
add 1 to Fn
enddo
z-add 1 to Fx
dou Fx > Fn
write detailFx
enddo
o-specs
detail1
detail2
detail3
detail4
Is this possible?
For example:
z-add 1 to Fn
read file1
dou eof
move field1 to detailFn
read file1
add 1 to Fn
enddo
z-add 1 to Fx
dou Fx > Fn
write detailFx
enddo
o-specs
detail1
detail2
detail3
detail4
Is this possible?