Hi..
i have 200 length of character variable(for ex Address)as a field name.
I want to use this in a subfile. Is it possible? How ?
yes ,by using sflfold option
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.
Last Wiki Answer Submitted: June 28, 2012 10:02 am by ffffffffffff15 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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)
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.
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.
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)
I wonder if CNTFLD and WRDWRAP work in subfiles?
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
I wonder if CNTFLD and WRDWRAP work in subfiles?
From the i 7.1 DDS Reference:
No, they can’t.
Tom
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