Home > AS/400 Tips > iSeries administrator tips > Add useful company information to your signon display each day
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Add useful company information to your signon display each day


Andy Farmer
06.05.2001
Rating: -3.94- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This procedure will help you to update a designated area of your initial signon screen without having to end the subsystem or re-compile the display file. This can be used as a notice board for company information, announcements or maintenance information or whatever you like, I've heard it used for updating the screen with a fresh quote everyday. You need 3 new components and you also need to add a few lines into the signon display file. Firstly, you need to create a new message file, in this case I called it MSGF, then you need a CL program and another DSPF (these are used as a friendly way of updating the information on the screen).

Firstly create the message file and create 5 blank message in it (you can use as many as you want to as long as you have space) <--- Fig1

Now 5 fields have to be added to your signon display file (this will have to be re-compiled after this) these fields will contain the data held in the message file <--- Fig2

You can test this works by manually making a change to one of the message, this should then appear on the signon screen (only changes once the signon screen is refreshed) If that is working OK, we can now move on and create a nice little CL program that will make those changes for you.

Create a display file <--- Fig3

Then finally create the CL program. <--- Fig4 Once all has been completed, call the program, you then be presented with a screen with 5 lines which you can input your information... once you press enter it will update the message file and thus update your signon screen... very useful.

If the details are unclear you can mail me for more info Andrew Farmer.



Code

 
Fig1 --- Message file.

Opt  Message ID  Severity  Message 
         
      LIN0001        0     Line1
      LIN0002        0     Line2      
      LIN0003        0     Line3       
      LIN0004        0     Line4
      LIN0005        0     Line5 

(I have just put some text in as an illustration)

========================================

Fig2 --- Changes to signon display file. (I've had to split this up into 3 lines to fit it in)

 
(First field)
Name++++++RLen++TDpBLinPos  ...
MSGLIN01      74   O 17  3 
... Functions+++++++++++++++++    
    MSGID(LIN 0001 *LIBL/MSGF)

(Second field)
Name++++++RLen++TDpBLinPos  ...
MSGLIN02      74   O 18  3 
... Functions+++++++++++++++++    
    MSGID(LIN 0002 *LIBL/MSGF)

...and so on until you have 5. 

========================================

 
Fig3 --- CHGSGNON Display file

T.Name++++++RLen++TDpBLinPos  ...

R CHGSGNON

... Functions+++++++++++
    DSPSIZ(24 80 *DS3)
                  
    CHGINPDFT(LC)     
    CF03(99)          
    CF12(99)          
    ENTFLDATR         
    CHECK(AB)         

There should be then 5 fields set up like the following:

 
Name++++++RLen++TDpBLinPos ...
FLD001        74A  B  7  4
Functions+++++++++++++++++++++++++++
COLOR(WHT) 
DSPATR(UL)                     
MSGID(LIN 0001 *LIBL/MSGF)

========================================

 
Fig4 --- CHGSGNPGM CL Program.

PGM
DCLF FILE(*LIBLE/MSGF) RCDFMT(CHGSGNON)
       ALWNULL (*YES) SNDRCVF 
IF COND(&IN99) THEN(GOTO CMDLBL DONE))  
CHGMSGD MSGID(LIN0001) MSGF(*LIBL/MSGF)
          MSG(&FLD001) 
CHGMSGD MSGID(LIN0002) MSGF(*LIBL/MSGF)
          MSG(&FLD002) 
CHGMSGD MSGID(LIN0003) MSGF(*LIBL/MSGF)
          MSG(&FLD003) 
CHGMSGD MSGID(LIN0004) MSGF(*LIBL/MSGF)
          MSG(&FLD004) 
CHGMSGD MSGID(LIN0005) MSGF(*LIBL/MSGF)
          MSG(&FLD005) 
ENDPGM 

Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

iSeries system performance and monitoring
Translating Linux for IBM i admins: Working with jobs and networking
Database performance comparisons on IBM i
How to: Monitoring job activity on the AS/400
Performance tuning for IBM i: The basics and beyond
How to: Reduce the percentage of ASP used on the AS/400
Detecting system changes made by outside IP address
AS/400 system values quiz
Checking on System i disk space requires creating a new command: XRTVSYSSTS
Drive space management commands
Viewing netstat information

Performance
Will overloaded discs impact iSeries performance?
Extend storage capacity on an IBM i without negatively effecting system performance
Database drivers on the i: MySQL vs. IBM Toolbox
Performance tuning for IBM i: The basics and beyond
IBM releases new Power products for the midrange
Top System i admin tips for 2006
Catholic Charities keeps track of homeless with iSeries
i5 error messages: What you need to know
IBM races for clock speed
System shutting down after cleanup

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
CIW  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts