Wednesday, December 4, 2013

Day-9.

Screen Design Aid

Overview:

This module enables the student to understand the concept Screen Design

 Outline:
Topics covered,
·         Simple Screen Design

Objective:
      By the end of this module, the student should be able to:
  • Understand the concept of Simple Screen Design.

Simple Screen Design

One of the most intuitive development tools on the AS/400 is SDA, Screen Design Aid. With it, you build display screens and menus in a WYSIWYG (what you see is what you get) mode. We're going to look at how easy it is to create a simple help screen.
In only a few minutes, you can build a custom help screen for your user. Start SDA with the command STRSDA. You will see that SDA has three functions:
1)     Design Screens
2)     Design Menus
3)     Test Display Files
Use selection 1 to design a menu. Enter the name of your Screen, where you have stored the source (usually MYSCR) and the library that it is in.
                         AS/400 Screen Design Aid (SDA)                        
                                                                                
 Select one of the following:                                                  
                                                                               

      1. Design screens                                                         
      2. Design menus                                                          
      3. Test display files                                                   
                                                                                
                                                                                
 Selection or command                                                          
 ===> 1      
                                                                                                                                                 
 F1=Help   F3=Exit   F4=Prompt   F9=Retrieve   F12=Cancel                      
 
This initial menu includes the following options:

  1. Design screens-Controls the creation or maintenance of the record(s) in a display file.
  2. Design menus-Controls the creation and maintenance of interactive menus.
  3. Test display files-Controls file testing of successfully compiled display files and menus.               
Enter YOUR Library Name, Source Name, File Name

                                Design Screens                                 
                                                                               

 Type choices, press Enter.                                                    
                                                                               
   Source file . . . . . . . .   MYSCR           Name, F4 for list                
                                                                                
     Library . . . . . . . . .   PB01U01D        Name, *LIBL, *CURLIB             
                                                                               
   Member  . . . . . . . . . .   SCR1            Name, F4 for list                

  
                                                                                                                             
 F3=Exit     F4=Prompt     F12=Cancel                                          

Definitions of the entries in the display in Figure are explained below.

  • Source file-The IBM default is QDDSSRC; the installation has the option of assigning their own base source files.
  • Library-The default is *LIBL or user may enter the specific library in which the display file’s source will be stored.
  • Member-The name of the display file to be created is entered on this line. If an existing display file is to be changed, F4 may be pressed for a list of the files in the library specified on the preceding line.
  • The three command keys listed at the bottom of the display provide the following control:
  • F3=Exit-Returns control to the previous screen without executing the current changes. (if any)
  • F4=Prompt-Displays list of existing files as explained above.
  • F12=Cancel- Cancels any entries and returns control to the previous screen.
 Press ENTER and the Work with Display Record screen shown in figure will display.


                      Work with Display Records                                
                                                                               
 File  . . . . . . :   MYSCR                Member . . . . . . :   SCR1     
 Library . . . . :     PB01U01D                Source type  . . . :   DSPF      
                                                                               

 Type options, press Enter.                                                    
   1=Add             2=Edit comments          3=Copy          4=Delete         
   7=Rename          8=Select keywords       12=Design image                   
                                                                               

 Opt  Order    Record        Type      Related Subfile   Date        DDS Error 
 1             REC1                                                            
                                                                               



   (No records in file)                                                        
                                                                               

                                                                               
                                                                         Bottom
 F3=Exit                     F12=Cancel      F14=File-level keywords           
 F15=File-level comments     F17=Subset      F24=More keys                     

For simple screen you have to write its name from given option ‘Record’                  

                               Add New Record                                 
                                                                              
 File  . . . . . . :   MYSCR                Member . . . . . . :   SCR1    
   Library . . . . :     PB01U01D                Source type  . . . :   DSPF     

                                                                              
 Type choices, press Enter.                                                   
                                                                               
   New record  . . . . . . . . . . . . . ..   REC1         Name              
                                                                              
   Type  . . . . . . . . . . . . . . . . ..   RECORD       RECORD, USRDFN    
                                                            SFL,    SFLMSG    
                                                            WINDOW, WDWSFL    
                                                            PULDWN, PDNSFL     
                                                            MNUBAR            
                                                                              
                                                                              
          
                                                                           
                                                                              
 F3=Exit     F5=Refresh     F12=Cancel                                        

Press Enter & you are getting a blank screen where you have to design your Design 
Simple Example IS given.

Press Enter After complete creation of screen your getting following option

                                                                                
                                                                               
                                                                               
                                                                               
                                                                                                                                                 
                                                                               
                                                                               
                                                                                                                                             
                                                                                
 Work screen for record REC2: Press Help for function keys.   

Write the things in single quotation only and press enter.
                
                                                                                
    *DATE                                                    *TIME                       
                                                                               
                            ‘STUDENT DETAILS’                                    
                                                                               
                                                                               
               ‘ROLLNO       :’                 
                                                                               
               ‘STUDENT NAME :’                                              
                                                                               
               ‘COURSE CODE :’                                                
                                                                               
               ‘COURSE NAME :’                                               
                                                                                
               ‘ADDRESS     :’                                                   
                                                                               
                                                                                
     ‘F3:EXIT’                                                                   
                                                                                                                                                     


Note : A field for the system date is specified by the reserved word *DATE (upper or lower case) and the system by *TIME. The format for *DATE is MM/DD/YY and *TIME, HH:MM:SS.

                                                                            
DD/DD/DD                                                                    TT:TT:TT             
                                                                               
                                                                                
                            STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:                                                     
                                                                               
               STUDENT NAME:                                              
                                                                                
               COURSE CODE:                                                
                                                                               
               COURS NAME:                                                 
                                                                               
               ADRESS:                                                    
                                                                                
                                                                               
     F3:EXIT                                                                   
                                                                                
                                                                               
                                                                               
                                                                               
                                                                               


PRESS ‘F3’ TO GET FOLLOWIN SCREEN FROM WHICH CHOOSE REQUIRED OPTION.



                                                         Exit SDA Work Screen                           
                                                                              
 Select one of the following:                                                 
                                                                              
     1. Save work since last Enter and exit work screen                       
     2. Exit without saving any work done on the work screen                  
     3. Resume work screen session                                            
                                                                               
                                                                             
                                                                              
 Selection                                                                     
     1                                                                        
                                                                              
 F12=Cancel                                                                    
                                                                                                                                   

Selecting 1 and pressing ENTER will display the Save DDS- Create display File screen shown in fig

                      Work with Display Records                                
                                                                               
 File  . . . . . . :   MYSCR                  Member . . . . . . :   SCR1      
   Library . . . . :     PB01U01D           Source type  . . . :   DSPF      
                                                                               
 Type options, press Enter.                                                    
   1=Add             2=Edit comments          3=Copy          4=Delete         
   7=Rename          8=Select keywords       12=Design image                   
                                                                               
 Opt  Order    Record        Type      Related Subfile   Date        DDS Error 
                                                                               
              10    REC1          RECORD                      03/01/05              
                                                                                
                                                                               
                                                                                                                                                          
                                                                         Bottom
 F3=Exit                     F12=Cancel      F14=File-level keywords           
 F15=File-level comments     F17=Subset      F24=More keys                     
 Image updated for record REC1.                                                

AGAIN HIT ENTER

                                    Save DDS - Create Display File                         
                                                                               
 Type choices, press Enter.                                                    
                                                                               
   Save DDS source  . . . . . . . . . . . .   Y            Y=Yes               
     Source file  . . . . . . . . . . . . .   MYSCR        F4 for list         
       Library  . . . . . . . . . . . . . .   PB01U01D    Name, *LIBL ...     
     Member . . . . . . . . . . . . . . . .   SCR1         F4 for list         
     Text . . . . . . . . . . . . . . . . .   this is the screen               
                                                                               
                                                                                
   Create display file  . . . . . . . . . .   Y            Y=Yes               
     Prompt for parameters  . . . . . . . .                Y=Yes               
     Display file . . . . . . . . . . . . .   SCR1         F4 for list         
       Library  . . . . . . . . . . . . . .   PB01U01O    Name, *CURLIB       
     Replace existing file  . . . . . . . .   Y            Y=Yes               
                                                                                
   Submit create job in batch . . . . . . .   N            Y=Yes               
                                                                               
   Specify additional                                                           
     save or create options . . . . . . . .                Y=Yes               
                                                                               
 F3=Exit   F4=Prompt   F12=Cancel                                              
 Member SCR1 and File SCR1 exist and will be replaced.                        +

After the defaults are taken or changes made, pressing ENTER twice will save, compile, and create an object (if there are no terminal errors) A listing that may be a viewed and/or printed will be generated in the user’s print queue.


                           Work with Members Using PDM                 S653278B
                                                                               
 File  . . . . . .   MYSCR                                                      
   Library . . . .     PB01U01D             Position to  . . . . .             
                                                                               
 Type options, press Enter.                                                     
  2=Edit         3=Copy  4=Delete 5=Display       6=Print     7=Rename         
  8=Display description  9=Save  13=Change text  14=Compile  15=Create module...
                                                                                
 Opt  Member      Type        Text                                             
        SCR1        DSPF        this is the screen                               
                                                                                   
                                                                               
                                                                               
                                                                               
                                                                         Bottom
 Parameters or command                                                         
 ===>                                                                          
 F3=Exit          F4=Prompt             F5=Refresh            F6=Create        
 F9=Retrieve      F10=Command entry     F23=More options      F24=More keys    

COMPILE THIS MEMBER TO CREATE THE OBJECT OF THIS SCREEN USING OPTION 14.

                                                                              
While designing screen If we want to put numeric field we have to use following   options:

+3(No of digits): For Input Field only                                                      
+6(No of digits): For output Field only
+9(No of digits): For Both Input & Output Field only

If we want to put alphanumeric field we have to use following   options:

+I (No of chars) : For Input Field only                                                      
+O (No of chars): For output Field only
+B (No of chars) : For Both Input & Output Field only

How to use above option on screen. To add the fields using above options  use option ‘17’ to work with the display file

                           Work with Members Using PDM                 S653278B
                                                                               
 File  . . . . . .   MYSCR                                                     
   Library . . . .     PB01U01D          Position to  . . . . .             
                                                                               
 Type options, press Enter.                                                    
  2=Edit         3=Copy  4=Delete 5=Display       6=Print     7=Rename         
  8=Display description  9=Save  13=Change text  14=Compile  15=Create module...
                                                                               
 Opt  Member      Type        Text                                             
  17   SCR1        DSPF        this is the screen                               
                                                                                  
                                                                                                                                                        
                                                                               
                                                                                                Bottom
 Parameters or command                                                          
 ===>                                                                          
 F3=Exit          F4=Prompt             F5=Refresh            F6=Create        
 F9=Retrieve      F10=Command entry     F23=More options      F24=More keys    

Press enter & use option ‘12’ with record format.

                      Work with Display Records                                
                                                                               
 File  . . . . . . :   MYSCR                  Member . . . . . . :   SCR1      
   Library . . . . :     PB07U01D             Source type  . . . :   DSPF      
                                                                               
 Type options, press Enter.                                                     
   1=Add             2=Edit comments          3=Copy          4=Delete         
   7=Rename          8=Select keywords       12=Design image                   
                                                                                
 Opt  Order    Record        Type      Related Subfile   Date        DDS Error 
                                                                               
 12      10    REC1          RECORD                      03/01/05              
                                                                               
                                                                               
                                                                                
                                                                               
                                                                               
                                                                               
                                                                                
                                                                         Bottom
 F3=Exit                     F12=Cancel      F14=File-level keywords           
 F15=File-level comments     F17=Subset      F24=More keys                     
                                          (C) COPYRIGHT IBM CORP. 1981, 2002.  

Hit enter & work with screen
                                                                              
DD/DD/DD                                                                                                           TT:TT:TT
                                                                               
                                                                               
                                                    STUDENT DETAILS                                    
                                                                               
                                                                               
               ROLLNO:                       &3(3)                                     
                                                                               
               STUDENT NAME:         &B(5)                                    
                                                                                 
               COURSE CODE:            &9(3)                                     
                                                                               
               COURS NAME:              &I(5)                                     
                                                                               
               ADRESS:                         &O(5)                                    
                                                                                
                                                                               
                      F3:EXIT                                                                   
                                                                                                                                                             
                                                                               
                                                                                
Press enter


DD/DD/DD                                                                                                              TT:TT:TT
                                                                               
                                                                                
                                                          STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:                          333-                                   
                                                                               
               STUDENT NAME:            BBBBB                                  
                                                                               
               COURSE CODE:               999-                                   
                                                                                
               COURS NAME:                 IIIII                                  
                                                                               
               ADRESS:                            OOOOO                                   
                                                                               
                                                                               
                   F3:EXIT                                                                    
                                                                               
                                                                                                                                                          
 Work screen for record REC1: Press Help for function keys.                    

Now again compile the file and test it.

TESTING A DISPLY FILE’S RECORD FORMAT:
After the display file has been successfully compiled any record format included may be tested by the Test display files option (3) on the AS/400 Screen Design Aid (SDA) display shown in figure.

                         AS/400 Screen Design Aid (SDA)                        
                                                                                
 Select one of the following:                                                  
                                                                               
      1. Design screens                                                        
      2. Design menus                                                          
      3. Test display files                                                    
                                                                                
                                                                                                                                                       
                                                                               
 Selection or command                                                          
 ===>  3                                                                        
                                                                               
 F1=Help   F3=Exit   F4=Prompt   F9=Retrieve   F12=Cancel                      
                                (C) COPYRIGHT IBM CORP. 1981, 2002.
                                                                                                                                                              

The Test display files option supports the following functions:

 Tests record formats in the display file to observe how they appear on the screen.
  1. Tests any data validation checks of input fields.
  2. Displays the values in the input buffer that pass data and indictor status.
  3. Displays the values in the output buffer and the status (ON or OFF) of the indicator(s).
 To advance to the next display, press ENTER. The Test Display File screen shown in Figure will display where the user must respond to the prompts: Display File, Library and Record to be tested. An entry (or entries) may be made for the Additional records to display prompt if the display file includes more than one record and a additional formats are to be tested.

                                                        Test Display File                                
                                                                               
 Type choices, press Enter.                                                    
                                                                                
   Display file . . . . . . . . . . . . .   SCR1         Name, F4 for list     
     Library  . . . . . . . . . . . . . .     PB01U01O   Name, *LIBL ...       
                                                                               
   Record to be tested  . . . . . . . . .   REC1         Name, F4 for list     
                                                                               
   Additional records to display  . . . .                Name, F4 for list     
                                                                                
                                                                               
                                                                                                                                  
                                                                               
 F3=Exit     F4=Prompt     F12=Cancel                                           
 
Press enter



                              Set Test Output Data                             
                                                                               
 Record . . . :   REC1                                                          
                                                                               
 Type indicators and output field values, press Enter.                         
                                                                               
 Field              Value                                                           
 ROLL            999:                                                            
 SNAME        BBBBB:                                                          
 CCD              999:                                                            
 CORS           BBBBB:                                                          
 ADD             BBBBB:                                                          
                                                                                
                                                                                                                                 
                                                                                
                                                                                                                 Bottom
 F3=Exit   F12=Cancel                                                          
                                                                               

Hit enter to test the screen-
                                     
 3/01/05                                                                                                                             17:13:48
                                                                               
                                                                               
                                                               STUDENT DETAILS                                    
                                                                               
                                                                               
               ROLLNO:                          999                                    
                                                                               
               STUDENT NAME:            BBBBB                                  
                                                                                
               COURSE CODE:               999                                    
                                                                               
               COURS NAME:                 BBBBB                                   
                                                                               
               ADRESS:                            BBBBB                                  
                                                                                
                                                                               
                  F3:EXIT                                                                   
                                                                               
                                                                                                                                      

Press F3 to exit from screen
Rename  the fields of screen using ‘?’ option as shown below.

DD/DD/DD                                                                                                                    TT:TT:TT
                                                                                
                                                                               
                                                           STUDENT DETAILS                                    
                                                                                
                                                                               
               ROLLNO:                   ?333-                                          
                                                                                
               STUDENT NAME:       BBBBB                                         
                                                                               
               COURSE CODE:          999-                                           
                                                                               
               COURS NAME:            BBBBB                                         
                                                                                
               ADRESS:                       BBBBB                                         
                                                                               
                                                                                
                   F3:EXIT                                                                   
                                                                                                                                                            
Work screen for record REC1: Press Help for function keys.           
                                                                               

Press enter
                                                                                
DD/DD/DD                                                                                                                    TT:TT:TT
                                                                               
                                                                                
                                                                 STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:                        333-                                   
                                                                               
               STUDENT NAME:          BBBBB                                          
                                                                               
               COURSE CODE:             999-                                          
                                                                                
               COURS NAME:              BBBBB                                         
                                                                               
               ADRESS:                         BBBBB                                         
                                                                                
                                                                               
                    F3:EXIT                                                                   
                                                                                
                                                                                                                                                           
  FLD001     Length: 03,00 TEXT:                                                                                                                                        


Change that FLD001 to ROLLNO.
                                                                     
DD/DD/DD                                                                                                                 TT:TT:TT
                                                                               
                                                                               
                                                            STUDENT DETAILS                                    
                                                                               
                                                                               
               ROLLNO:                   999-   333-                                   
                                                                               
               STUDENT NAME:     BBBBB                                         
                                                                                
               COURSE CODE:        999-                                          
                                                                               
               COURS NAME:          BBBBB                                          
                                                                               
               ADRESS:                     BBBBB                                         
                                                                                
                                                                               
                    F3:EXIT                                                                   
                                                                               
                                                                                                                                                              
  ROLLNO       Length: 03,00 TEXT:                                                                                                                               

Like Roll number change the name of other fields.

Moving Screen Items

Screen items (constants or variables) may be moved by the following methods
1.The > (greater than )symbol will move an item to the right the number of columns equal t the number of > characters specified after the ENTER key is pressed.
2. The < (less than ) symbol will move an item to the left the number of columns equal to the number of < characters specified after the ENTER key is pressed.
3. Typing a – (hyphen) before an item and an = (equal sign) somewhere on a used area on the screen will move the item beginning at the = location after ENTER is pressed.

When using any of the move functions, basic screen creation rules must be followed at least one space must be included between items and they may not overlap each other, by sign position included at the end of a numeric field is considered a character, and anything following it must include at least one leading space.
Following are the options, which are used to move field left side or right side on same line:

To Move Field on same screen from one place to another place:
Use ‘—‘ & ‘=’ options are used.
To Move Field & copy on same screen from one place to another place:
Use ‘—‘ & ‘==’ options are used.

How to use above options on screen:

DD/DD/DD                                                                                                       TT:TT:TT
                                                                               
                                                                                
                                                               STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:            <<<<<<333-   (move left side)                                
                                                                               
               STUDENT NAME:            BBBBB                                  
                                                                               
               COURSE CODE:              999->>>>>>>     (move right side)                        
                                                                                
               COURS NAME:               IIIII                                  
                                                                               
               ADRESS:                          OOOOO                                   
                                                                               
                                                                               
                   F3:EXIT                                                                   
                                                                               
                                                                                                                                                           
 Work screen for record REC1: Press Help for function keys.                    

For moving field on same line  use the options as shown above & press enter:

DD/DD/DD                                                                                                                 TT:TT:TT
                                                                               
                                                                                
                                                              STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:                          333-                                         
                                                                               
               STUDENT NAME:            BBBBB                                   
                                                                               
               COURSE CODE:               999-                            
                                                                               
               COURS NAME:                IIIII                                  
                                                                               
               ADRESS:                           OOOOO                                  
                                                                                
                                                                               
                         F3:EXIT                                                                   
                                                                                
                                                                            




Now how to define fields from database file on screen

For this you have to use ‘student’ database file. Press ‘F10’ on your screen which gives you following screen where you have to provide your:
Use option ‘17’ press enter & then use option ‘12’ to work with screen record.

                                                                               
DD/DD/DD                                                                                                           TT:TT:TT
                                                                               
                                                                               
                                                             STUDENT DETAILS                                    
                                                                               
                                                                               
               ROLLNO:                                                          
                                                                               
               STUDENT NAME:                                                   
                                                                                
               COURSE CODE:                                                    
                                                                               
               COURS NAME:                                                      
                                                                               
               ADRESS:                                                         
                                                                               
                                                                                
                       F3:EXIT                                                                   
                                                                               
                                                                                                                                        
                                                                                

Press ‘F10’ on above screen which gives you
  
                             Select Database Files                             
                                                                               
 Type options and names, press Enter.                                          
   1=Display database field list                                               
   2=Select all fields for input (I)                                           
   3=Select all fields for output (O)                                          
   4=Select all fields for both (B) input and output                           
                                                                               
 Option    Database File   Library      Record                                 
               STUDENT        PB01U01O                                            
                                                                               
                                                                                                                                                      
                                                                                                                                                              
 F3=Exit     F4=Prompt     F12=Cancel                                          

Press F4 to select record format for student file

                            Select Database Records                            
                                                                               
 Database file  . . . . . :   STUDENT        Library . . . :   PB01U01O        
                                                                                
 Type options, press Enter.                                                    
   1=Select                                                                    
                                                                                
 Option   Record                                                               
      1      RSTUD                                                                
                                                                                
                                                                               
                                                                           
                                                                                   Bottom
                                                                                                                                                           
 F3=Exit   F12=Cancel                                                           
                                                                               

Write option 1 to select the record format & press enter & choose option according to your requirement.

                             Select Database Files                             
                                                                               
 Type options and names, press Enter.                                           
   1=Display database field list                                               
   2=Select all fields for input (I)                                           
   3=Select all fields for output (O)                                           
   4=Select all fields for both (B) input and output                           
                                                                               
 Option    Database File   Library      Record                                  
  4         STUDENT        PB01U01O      RSTUD                                  
                                                                               
                                                                                                                                                          
                                                                                
 F3=Exit     F4=Prompt     F12=Cancel                                          
                                                                               


Press enter 2 times which gives you following screen
  
                                                                               
DD/DD/DD                                                                                                            TT:TT:TT
                                                                               
                                                                                
                                                   STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:                                                         
                                                                               
               STUDENT NAME:                                                    
                                                                               
               COURSE CODE:                                                    
                                                                                
               COURS NAME:                                                     
                                                                               
               ADRESS:                                                          
                                                                               
                                                                               
               F3:EXIT                                                                    
                                                                               
                                                                                                                                                      
 1:ROLL 2:SNAME 3:CCD 4:CORS 5:ADD                                             


using the options available at bottom line we will define fields on screen as shown below
                                                                                 
DD/DD/DD                                                                                                                    TT:TT:TT
                                                                               
                                                                                
                                                          STUDENT DETAILS                                    
                                                                               
                                                                                
               ROLLNO:                   &1                                            
                                                                               
               STUDENT NAME:     &2                                             
                                                                               
               COURSE CODE:      &3                                            
                                                                                
               COURS NAME:       &4                                            
                                                                               
               ADRESS:                  &5                                             
                                                                               
                                                                               
               F3:EXIT                                                                   
                                                                                
                                                                                                                                                          
 1:ROLL 2:SNAME 3:CCD 4:CORS 5:ADD                                             

hit enter & get the screen
                              
DD/DD/DD                                                                                                             TT:TT:TT
                                                                               
                                                                               
                                                     STUDENT DETAILS                                     
                                                                               
                                                                               
               ROLLNO:                   999-                                           
                                                                               
               STUDENT NAME:     BBBBB                                         
                                                                               
               COURSE CODE:        999-                                          
                                                                               
               COURS NAME:          BBBBB                                         
                                                                                
               ADRESS:                     BBBBB                                         
                                                                               
                                                                                
                F3:EXIT                                                                   
                                                                               
                                                                                                                                                             


Press F3 and compile the program using 14

                           Work with Members Using PDM                 S653278B
                                                                               
 File  . . . . . .   MYSCR                                                      
   Library . . . .     PB01U01D             Position to  . . . . .             
                                                                               
 Type options, press Enter.                                                     
  2=Edit         3=Copy  4=Delete 5=Display       6=Print     7=Rename         
  8=Display description  9=Save  13=Change text  14=Compile  15=Create module...
                                                                                
 Opt  Member      Type        Text                                             
      SCR1        DSPF        this is the screen                               
      STATUS      DSPF        THIS IS THE STATUS FILE                           
      STUD        DSPF        THIS IS THE STUD SCREEN                          
      STUDENT     PF          STUDENT DETAILS                                  
                                                                               
                                                                               
                                                                               
                                                                               
                                                                         Bottom
 Parameters or command                                                         
 ===>                                                                          
 F3=Exit          F4=Prompt             F5=Refresh            F6=Create        
 F9=Retrieve      F10=Command entry     F23=More options      F24=More keys    
 File SCR1 created in library PB01U01D.                                        

 Deleting Screen Items

Any screen item previously entered may be deleted by typing an upper, or lowercase D before it and pressing ENTER.

Specifying Display Attributes:
Display attributes such as Protect Field, Position Cursor, and Modified Tag, may be specified for constants or variables may be assigned by entering the related attribute letter in the space preceding the item and pressing ENTER.

How to apply those attributes:
      1)    Open the display file ‘SCR1’ using the option ‘17’ & ‘12’.
2)    Now for defining attribute we use ‘*’ asterisk for that field as shown below

                                                                                
DD/DD/DD                                                                                  TT:TT:TT
                                                                                
                                                                               
(Use ‘*’ to define attribute)              *STUDENT DETAILS                                    
                                                                                
                                                                               
               ROLLNO:                      999-                                          
                                                                               
               STUDENT NAME:        BBBBB                                         
                                                                               
               COURSE CODE:           999-                                          
                                                                                
               COURS NAME:             BBBBB                                         
                                                                               
               ADRESS:                        BBBBB                                         
                                                                               
                                                                               
                   F3:EXIT                                                                    
                                                                               
                                                                                                                                                            
 Work screen for record REC1: Press Help for function keys.                    


Press enter

                             Select Field Keywords                              
                                                                               
 Constant  . . . :   STUDENT DETAILS                                           
 Length  . . . . :   15                   Row . . . :  5    Column . . . :  29 
                                                                               
 Type choices, press Enter.                                                    
                                               Y=Yes   For Field Type                    
   Display attributes  . . . . . . .   Y     All except Hidden                 
   Colors  . . . . . . . . . . . . .        Y     All except Hidden                 
                                                                               
                                                                                
                                                                               
   General keywords  . . . . . . . .         All types                         
                                                                                
                                                                              
                                                                        
                                                                                                                               
   TEXT keyword  . . . . . . . . . .                                            
                                                                               
                                                                               
 F3=Exit   F4=Display Selected Keywords   F12=Cancel                            
                                                                               


Hit enter

                           Select Display Attributes                           
                                                                                
 Constant  . . . :   STUDENT DETAILS                                           
 Length  . . . . :   15                   Row . . . :  5    Column . . . :  29 
                                                                               
 Type choices, press Enter.                                                    
                                              Keyword   Y=Yes   Indicators/+   
   Field conditioning . . . . . . . . . . .                                    
   Program-to-system field  . . . . . . . .                                    
   Display attributes:                        DSPATR                           
     High intensity . . . . . . . . . . . .        HI        Y                    
     Reverse image  . . . . . . . . . . .       RI                             
     Column separators  . . . . . . . .      CS                             
     Blink  . . . . . . . . . . . . . . . .           BL                             
     Nondisplay . . . . . . . . . . . . . .      ND                             
     Underline  . . . . . . . . . . . . . .        UL        Y                    
     Position cursor  . . . . . . . . . . .     PC                             
                                                                                
                                                                                                                                                             
                                                                               
 F3=Exit   F12=Cancel                                                          
                                                                                

Figure lists the letter equivalents for each display attribute.

 Letter    Display Attribute
HI         Highlight
RI         Reverse Image
CS        Column Separators (dots)
BL        Blink
UL        Underline (default for variables)
ND        Non display
PC        Position cursor



Press enter & set color for that field


                                 Select Colors                                 
                                                                                
 Constant  . . . :   STUDENT DETAILS                                           
 Length  . . . . :   15                   Row . . . :  5    Column . . . :  29 
                                                                                
 Type choices, press Enter.                                                    
                                                                               
                                          Keyword   Order   Indicators/+       
                                                    (1-7)                      
   Colors:                                 COLOR                                
     Blue . . . . . . . . . . . . . . .     BLU                                
     Green  . . . . . . . . . . . . . .   GRN                                
     Pink . . . . . . . . . . . . . . .    PNK                                
     Red  . . . . . . . . . . . . . . .    RED       1                        
     Turquoise  . . . . . . . . . . . . TRQ                                
     White  . . . . . . . . . . . . . .   WHT                                
     Yellow . . . . . . . . . . . . . .  YLW                                
                                                                                
                                                                                                                                                  
 F3=Exit   F12=Cancel                                                          
                                                                                

Choose ‘1-7’ option in ORDER to select color and press enter 2 times, which makes changes to that particular field. In this way set the attribute the screen again compile your screen.

 










3 comments:

  1. Dear Mr. Jaychand Chaudhari
    Namiskar, Have a nice day, आपका दिन अच्छा हो, ایک اچھا دن ہے.
    I would be thankful to you if you help me reading below matter of related to SDA of AS400.
    We have default screen of AS400 (POWER 7) system but I want to change into like this:
    1)


    I also sent a code of a SDA, kindly help me to run at free server which is like mentioned below:
    http://www.rzkh.de/cgi-bin/db2www/getaccounteng.d2w/main

    ReplyDelete
  2. Dear J Ch, Here I am unable to sent screen short of the systems, so i have to sent the message into face book. pl consider it.

    Thanks and the best regards.

    Taher M

    ReplyDelete
  3. Dear Mahmood, if u want to learn SDA and u want see the RPG program then follow the day to day schedule , here click on day 10 and then u will get the rpg program of SDA.

    ReplyDelete