Long field in display file

2505 pts.
Tags:
AS/400
DSPF
SQL Query
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Have 16 lines defined in the DSPF as 68 characters each.

Then use a DS in your RPG program subdefining each of the lines.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    use the keyword CNTFLD(68)IBM Manual 
    7,935 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following