[Migrated content. Thread originally posted on 09 May 2006]
I have lines I wish to display on a screen ie01 Print-lines.
03 pline1 pic x(80) value a.
03 pline2 pic x(80) value b.
.
. etc.
I read a variable "varno" with a value 1-9 which tells me which line to print, ie
1 = pline1
5 = pline5
Without doing multiple If statements, can I somehow string "pline" "varno" to make a single print statement which will print any line?
TIA
Ian Warner



