subfile

0 pts.
Tags:
Subfile
I have created a message subfile but my code is not moving the error message to the display file.I did a debug and found that the write msgctl statement is executed but nothing is being written.Wat could be the possible reason
ASKED: December 30, 2008  10:07 AM
UPDATED: December 31, 2008  2:28 PM

Answer Wiki

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

Hi,

Are you sure that the subfile isn’t being overlayed by your other screens? This is one of the most common problems – you need to make sure your OVERLAY keywords are correct.

Regards,

Martin Gilbert.

Discuss This Question: 9  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
  • how do i check that in my program?
    0 pointsBadges:
    report
  • Heres my sample code details:Not able to track y the msg is not displayed, DDS Details: A DSPSIZ(24 80 *DS3) A R MSGTR A CA03(03) A 8 21'NAME:' A NME 10A B 8 28 A R MSGRCD SFL A SFLMSGRCD(24) A MSGKEY SFLMSGKEY A PGM SFLPGMQ(10) A R MSGCTL SFLCTL(MSGRCD) A OVERLAY A SFLDSP A N98 SFLINZ A SFLSIZ(0002) A SFLPAG(0001) A PGM SFLPGMQ(10) RPG Code: FMSGT CF E WORKSTN IIDS DS I B 1 40@STK I B 5 80@LEN I B 9 120@ERR C *IN03 DOWEQ*OFF C WRITEMSGCTL C EXFMTMSGTR C 03 LEAVE C* EXSR @CMD C MOVEL*BLANKS @KEY C CALL 'QMHRMVPM'@PARM1 C NME IFEQ *BLANKS C MOVE 'B00006A' @MSGID C CALL 'QMHSNDPM'@PARM2 C END C ENDDO C SETON LR C *INZSR BEGSR C MOVEL'*' PGM C MOVEL'*DIAG' @TYPE C MOVEL'*LIBL' @LIB 10 C MOVE @LIB @MSGF 20 C MOVEL'SSAZ02' @MSGF C MOVEL'*ALL' @RMV 10 C MOVEL*BLANKS @KEY 4 C MOVE 0 @LEN C @PARM1 PLIST C PARM PGM C PARM @STK C PARM @KEY C PARM @RMV C PARM @ERR C @PARM2 PLIST C PARM @MSGID 7 C PARM @MSGF C PARM @DTA 80 C PARM @LEN C PARM @TYPE 10 C PARM PGM C PARM @STK C PARM @KEY C PARM @ERR C ENDSR
    0 pointsBadges:
    report
  • philpl1jb
    I think the overlay is in the wrong record. It should be in MSGTR Your rpg code correctly writes the sfl message control and then ExFMT the record MSGTR MSGTR correctly doesn't walk on the area needed by the msg but without OVERLAY in MSGTR it clears the rest of the screen. phil
    48,575 pointsBadges:
    report
  • i tried as you suggested but still didnt get A DSPSIZ(24 80 *DS3) A R MSGTR A CA03(03) A OVERLAY A 8 21'NAME:' A NME 10A B 8 28 A R MSGRCD SFL A SFLMSGRCD(24) A MSGKEY SFLMSGKEY A PGM SFLPGMQ(10) A R MSGCTL SFLCTL(MSGRCD) A SFLDSP A N98 SFLINZ A SFLSIZ(0002) A SFLPAG(0001) A PGM SFLPGMQ(10)
    0 pointsBadges:
    report
  • philpl1jb
    SSAZ02 is your message file? B00006A is your message in message file SSAZ02? I'm guessing that it's A N98 SFLINZ when you have a message, I think *IN98 should be on so it doesn't initalize the subfile
    48,575 pointsBadges:
    report
  • Do you mean to say i need to remove n98 if that is the case i have done it and still doesnt work
    0 pointsBadges:
    report
  • Hey Phil thanks for your help...I finally got it...the problem was initially because of the overlay in msgctl and the main problem was because i didnt initialize param @err,@stk to 0.I did that and it worked fine.
    0 pointsBadges:
    report
  • I still dont have much idea about why the overlay caused problem and why sflinz and sflend are used...Would be of great help if you can throw light on it?
    0 pointsBadges:
    report
  • philpl1jb
    1. overlay - when this record is written (including EXFMT which is in effect a write and a read) it will only clear other records that are partially or completely in areas used by the record. 2. sflinz this initializes - clears the subfile record. 3. sflend when *on this sets the word MORE in the lower left corner until page down exposes the last sfl record then it shows bottom. Pressing pageDown again displays error. When sflend is *off then more is shown even when the last sfl record is shown and pgDn returns control to the program so the program can load more records. Phil
    48,575 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