how to handle Cursor progression in a mixed display file

130 pts.
Tags:
DSPF
FLDCSPPRG
Subfile Control
Subfile Display
I have a mixed DSPF (a combination of RECORD & SFL) Diagram is like: ------------------------------- Customer screen--------------------- from date :____                                                Print: _(Y/N) to date :____ opt             description ... _         ___________ _         ___________ _         ___________                                                                             bottom ------------------------------------------------------------------------ My question is : I want that on tabbing,cursor should go from 'from date -> to date -> Opt(in subfile)till 3rd record and at end it will go to 'print' field. Currently,the cursor is not going to Opt field in SFL from 'To date'. but going to the "print field' ...pls help.

Software/Hardware used:
as400

Answer Wiki

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

You need to use the FLDCSRPRG :

OK, so in SDA place * against the “from date” field and take the “General Keywords” option.
Against FLDCSRPRG enter the field you want the cursor to go to after this field. In this case the “to date” field.
You can do this against all fields.

Neil.

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
  • TomLiotta
    I doubt if FLDCSRPRG is going to help. The control record fields and the subfile fields are in different record formats. FLDCSRPRG must specify a field in the same record as the keyword. Besides, FLDCSRPRG can't be used in a subfile. If FLDCSRPRG worked from the control record to jump into the first subfile row, how would FLDCSRPRG be specified for the subfile row? Would it point to the next subfile row? Or would it point back to a control record field? Tom
    125,585 pointsBadges:
    report
  • Supriyoas400
    I agree with you Tom,as i have 2 different record formats here FLDCSRPRG will not work. But i am not finding any way out.
    130 pointsBadges:
    report
  • Splat
    Have you considered a separate display format containing the Print: _ (Y/N) and displaying beneath the subfile?
    7,185 pointsBadges:
    report
  • philpl1jb
    Or Protect the Print (Y/N) entry field with DSPATR(PR) After the user indicates advance (Function Key / Enter) Protect the other fields and unprotect the Print(Y/N) field or Put the Print(Y/N) in the footer record .. when processing returns read the footer record to get that value.
    49,850 pointsBadges:
    report
  • TomLiotta
    I probably wouldn't have a 'Print' field at all. I'd probably do something like 'F6=Print'. 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