65 pts.
 Adding MSGF to QDSIGNON
**This doesnt affect the normal login screen. Only issue is trying to display a message at the bottom. The login screen still works. Here is what i did: Created "TESTF" and it contains.     ADDLIBLE LIB(QGPL) POS(*FIRST)                       ADDMSGD MSGID(SGN0000 MSGF(TESTF) MSG('_____TESTING_____')       In the QDSIGNON file I have compiled this entry: A            TEST          32A  O 18  2MSGID(SGN 0000 QGPL/TESTF) When I view the end results, all that comes up is this:  0000??         Any help would be appreciated. Thanks in advance.

Software/Hardware used:
as400
ASKED: January 11, 2010  7:03 PM
UPDATED: January 13, 2010  12:08 AM

Answer Wiki:
Copy and Paste error. Here is what I am currently using: <pre> ADDMSGD MSGID(SGN0000) MSGF(TESTF) MSG('_____TESTING_____') <pre></pre></pre>
Last Wiki Answer Submitted:  January 11, 2010  9:45 pm  by  Gramicci   65 pts.
All Answer Wiki Contributors:  Gramicci   65 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Although you (apparently) did ADDLIBLE and ADDMSGD, have you done:

DSPMSGD  SGN0000  MSGF(QGPL/TESTF)

That is, can you verify that you added the message description to the message file in QGPL rather than to a different library?

Also, how are you testing this? Do you have a program that opens and displays QDSIGNON? Or are you looking at an actual subsystem signon panel?

Also, have you tried msgid SGN0001 rather than SGN0000? (I don’t know that “0000″ doesn’t work. The question relates more to other aspects of msgids than this particular usage.)

Tom

 107,935 pts.

 

Thanks for the response.

-Im not sure how to verify that i added the message description to the message file in QGPL. Maybe this is the reason why it is not working.

dspmsgd SGN0000 MSGF(QGPL/TESTF)
Message identifier SGN0000 not found in message file TESTF in QGPL.

-I am testing this by creating a TESTSBS subsystem and applying my test qdsignon file to it. So I am looking at an actual signon panel.

-I have tried SGN0000 thru SGN0010

 65 pts.

 

We made the same change. Our message file looks like this. I added some text to the first two messages for illustration purposes:

Work with Message Descriptions
System:
Message file: QUSERMSG Library: QGPL

Position to . . . . . . . Message ID

Type options, press Enter.
2=Change 4=Delete 5=Display details 6=Print

Opt Message ID Severity Message Text
ON00001 0 First message line
ON00002 0 Second message line
ON00003 0
ON00004 0
ON00005 0
ON00006 0

The DDS looks like this. The blank between the ON0 and 0001 has me wondering if that gap should be closed. If you get an error when compiling, remove the blank and try again.

A MSG1 78A O 15 2MSGID(ON0 0001 QGPL/QUSERMSG)
A COLOR(WHT)
A MSG2 78A O 16 2MSGID(ON0 0002 QGPL/QUSERMSG)
A COLOR(WHT)
A MSG3 78A O 17 2MSGID(ON0 0003 QGPL/QUSERMSG)
A COLOR(WHT)
A MSG4 78A O 18 2MSGID(ON0 0004 QGPL/QUSERMSG)
A COLOR(WHT)
A MSG5 78A O 19 2MSGID(ON0 0005 QGPL/QUSERMSG)
A COLOR(WHT)
A MSG6 78A O 20 2MSGID(ON0 0006 QGPL/QUSERMSG)
A COLOR(WHT)

 5,525 pts.

 
dspmsgd SGN0000 MSGF(QGPL/TESTF)
Message identifier SGN0000 not found in message file TESTF in QGPL.

That error indicates that there is no such message identifier in message file TESTF in library QGPL. That’s why you’re getting the “0000??” that you asked about originally.

According to the original question, you executed ADDLIBLE in an attempt to make QGPL become the top library in the ‘user’ portion of your library list. You then executed ADDMSGD to add your SGN0000 message to the TESTF message file.

However, you didn’t qualify TESTF with QGPL as the library. You allowed instead the library list to determine which version of TESTF was updated with your new msgid. We don’t see any of the job messages that resulted from ADDLIBLE nor ADDMSGD. We can’t tell which one, if either, was successful nor whether the msgid might have been added to a different TESTF in your library list.

The result of DSPMSGD shows that it didn’t go into QGPL/TESTF.

Run ADDMSGD again, but qualify it to QGPL/TESTF and ignore using ADDLIBLE. With qualification, it’s not necessary.

Tom

 107,935 pts.

 

Well it appears I created the MSGF incorrectly. Using the suggestions from both of you fixed the issue. the WRKMSGD command was what i mainly needed. Just EDTF was incorrect.

Thanks a lot!

 65 pts.