2,030 pts.
 Long field in display file
I have a display file which has a long field which is meant to hold a SQL query. The field is assumed to appear in the screen as 16 lines, with 68A per line. So When I declared a field of length 1088A(16*68) but how can I declare it to have only 68 per line so that it will appear the way I wanted - 68A in 16 line in single field?

Software/Hardware used:
ASKED: January 28, 2013  7:16 AM
UPDATED: January 28, 2013  1:06 PM

Answer Wiki:
Have 16 lines defined in the DSPF as 68 characters each. Then use a DS in your RPG program subdefining each of the lines.
Last Wiki Answer Submitted:  January 28, 2013  1:06 pm  by  Michael Tidmarsh   13,930 pts.
All Answer Wiki Contributors:  Michael Tidmarsh   13,930 pts. , CharlieBrowne   33,595 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

use the keyword CNTFLD(68)IBM Manual 

 7,205 pts.

 

Using CNTFLD(68), it isn’t necessary to use a DS for the field. It is referenced as a single variable in the program. The emulator and controller will handle the multiple lines on the display. The documentation reference from BigKat mentions the need to ensure that the emulator and controller both support CNTFLD() in a compatible manner. — Tom

 110,035 pts.