Use 200-character variable in AS/400 subfile

2475 pts.
Tags:
AS/400 Subfiles
Display File
Subfile
Hi.. I have 200 character-length variable (for ex Address) as a field name. I want to use this in a subfile. Is it possible? How? By using sflfold option?

Answer Wiki

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

I answered this earlier, but it looks like the answer did not stick.
Yes it is possible
Split the 200 character field into 3 fields.
Define 3 lines in your subfile and display one of the 3 new fields on each of the 3 lines.

Discuss This Question: 5  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
  • WoodEngineer
    This display file feature may help: SFLFOLD (Subfile Fold) keyword for display files You use this record-level keyword on the subfile-control record format to assign a command attention (CA) key or a command function (CF) key that the workstation user can press to truncate or fold subfile records that require more than one display line. The format of the keyword is: SFLFOLD(CAnn | CFnn)
    6,725 pointsBadges:
    report
  • Splat
    I wonder if CNTFLD and WRDWRAP work in subfiles?
    7,455 pointsBadges:
    report
  • TomLiotta
    The SFLFOLD keyword (or SFLDROP, depending on exactly how it's wanted to work) should work fine for output fields in a subfile. It'll take some practice on the input side for a 200-char field. (I'm pretty sure I wouldn't want to make it work for input in a subfile record.) Also, this would be a candidate for a DSPSIZ( 27 132 *DS4 ) display file. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    I wonder if CNTFLD and WRDWRAP work in subfiles? From the i 7.1 DDS Reference:
    • The field containing the CNTFLD keyword must be defined as an input-capable field with the data type A. It cannot be defined in a subfile.
    No, they can't. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Should also add that a 200-char field can display fine in a subfile. It's not actually necessary to break it up for separate lines. To be really useful, the SFLFOLD or SFLDROP keywords are handy. 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