Writing display file SFLCTL out in AS/400

25 pts.
Tags:
AS/400
How to I write this display file out in AS/400?
1

Answer Wiki

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

Typical DDS for me is:

A              R fredCTL                       SFLCTL(fredSFL)

A                                                      SFLSIZ(9999)

A                                                      SFLPAG(# of lines in subfile)

A                                                      OVERLAY

A  xx                                                SFLDSP

A  xx                                                SFLDSPCTL

A  yy                                                SFLCLR

A  zz                                                SFLEND(*MORE)

A  xx                                                SFLDROP(CF04)  (F4 key to toggle scrn info)

A            CURLOC      4S 0H          SFLRCDNBR(CURSOR)  (to keep up w/ crsr) 

Discuss This Question: 4  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.
  • TheRealRaven
    It's not clear what you're asking. The direct answer is that you use a WRITE instruction to write the record.

    You might use EXFMT in RPG to to do a write that turns around and does a read. In COBOL, you'd need to code separate WRITE and READ instructions. In C, you can use the _Rformat(subf, "SFLCTL"), _Rwrite() and _Rreadn() functions.
    34,430 pointsBadges:
    report
  • ToddN2000
    If its just to display data you can use WRITE for that record format.
    This is usually done for the CMD keys at the bottom of a page.

    If you have a lot of data and are looking for input of some type to be returned, then use the EXFMT opcode.
    131,560 pointsBadges:
    report
  • pdraebel
    Indicators defined on the SFLDSP and SFLDSPCTL should be on when issuing the WRITE or EXFMT to the format.
    7,545 pointsBadges:
    report
  • pdraebel
    Oh, make sure the CURLOC field is set to the value that is inside the range of the subfile page you want to Display. If it is ZERO at the moment of the PUT (WRITE or EXFMT) the program will get an error.
    7,545 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.

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

Following

Share this item with your network: