+ All Categories
Home > Documents > Iseries Programming Facilities

Iseries Programming Facilities

Date post: 04-Apr-2018
Category:
Upload: syed-ibrahim
View: 230 times
Download: 0 times
Share this document with a friend

of 45

Transcript
  • 7/30/2019 Iseries Programming Facilities

    1/45

    iSeries Programming Facilities

    SyedIbrahim Abbas

  • 7/30/2019 Iseries Programming Facilities

    2/45

    Topics to be covered

    Source Entry Utility (SEU)

    Data File Utility (DFU)

    Screen Design Aid (SDA)

    Q&A

  • 7/30/2019 Iseries Programming Facilities

    3/45

    Source Entry Utility

  • 7/30/2019 Iseries Programming Facilities

    4/45

    SEU

    SEU is a full screen editor that allows you to

    Create new source members

    Print the member

    Edit, Browse and Delete the members

  • 7/30/2019 Iseries Programming Facilities

    5/45

    Edit Session

    In edit session with SEU you can

    Insert new records, Change/ delete records, Move record from one point to another, Find a special string

    Special FeaturesSEU commands

    Line commands

    Syntax checking

    Additional options

  • 7/30/2019 Iseries Programming Facilities

    6/45

    SEU Commands

    SEU command allow you to work with member without leaving thework screen

    Line commands help you to insert, copy, move, delete or prompt forrecords

    It performs automatic syntax checking of source statements for C,C++, Java, Cobol, RPG, CLP and REXX

  • 7/30/2019 Iseries Programming Facilities

    7/45

    Session Defaults F13

    It specifies the characteristics of the SEU session.

    How much of the display the PAGE UP/DOWN keys move

    Whether input is in upper case only

    Whether sequence checking is to be performed

  • 7/30/2019 Iseries Programming Facilities

    8/45

    Find/Change Options F14 Search for specific string in some or all records

    Change the specific string

    Search for records that contain syntax errors

    Search based on date edited

  • 7/30/2019 Iseries Programming Facilities

    9/45

    Select Prompt F23

    SEU provides predefined prompts and format lines for high level languages and CLcommands

  • 7/30/2019 Iseries Programming Facilities

    10/45

    Browse/ Copy option F15

    To look at another member or spooled file Copy another member or spooled file to the member you are editing

    Copy specific records from another member

  • 7/30/2019 Iseries Programming Facilities

    11/45

    You can also split the edit / browse session in to two parts

    This feature can be used to copy records from one member on display tomember that you are editing

  • 7/30/2019 Iseries Programming Facilities

    12/45

    Starting SEU

    Type STRSEU

  • 7/30/2019 Iseries Programming Facilities

    13/45

    Type source member Eg. INVMAST

    Source Type: Eg. PF

    Option: 2/*blankedit , 5- browse 6- Print

    Type the text description

  • 7/30/2019 Iseries Programming Facilities

    14/45

    Starting screen

    Press F24 to display more function keys

  • 7/30/2019 Iseries Programming Facilities

    15/45

    Browse/copy F15

    To copy a block of records type CC in the starting line and in end lineand press enter

    Type A and press enter in the member we are editing to paste thecopied content

    Press F12 to close the browse session, revert back to single screen

  • 7/30/2019 Iseries Programming Facilities

    16/45

    To insert a new line Type IP in the next line

  • 7/30/2019 Iseries Programming Facilities

    17/45

  • 7/30/2019 Iseries Programming Facilities

    18/45

    Data File Utility

  • 7/30/2019 Iseries Programming Facilities

    19/45

    DFU

    To Enter data into Database file

    Used to create Data Entry Programs for users

    Once program created you can Enter data

    Update files

    Make file enquires

  • 7/30/2019 Iseries Programming Facilities

    20/45

    DFU Menu

    STRDFU

    To create a program type option 2 and press enter. In the 1st screen enterproram name/LIB and Data file/LIB

  • 7/30/2019 Iseries Programming Facilities

    21/45

    The next screen defines the general DFU information The program job title

    The display format

    Whether audit reporting is requiredif Y it will ask audit control options

    Whether records are updated when the user rolls between records

    To generate a key

  • 7/30/2019 Iseries Programming Facilities

    22/45

    Select Record and Field

    Next select the record format you wish to use

    Select and sequence fields based on your requirement

  • 7/30/2019 Iseries Programming Facilities

    23/45

    Work with fields

    You can view andmodify theextendedattributes of a

    field using option2

    This screen allowsyou to review the

    definition statusof each field

  • 7/30/2019 Iseries Programming Facilities

    24/45

    Generate DFU Program Press enter to generate DFU program

  • 7/30/2019 Iseries Programming Facilities

    25/45

    Change a Data File

    After DFU program saved change screen will bedisplayed

    You can also select option 1 from DFU menu

    Using DFU program you can Change a record file F11

    Browse record page down / page up

    Print an audit report listing all the changes made to that file

    Automatically duplicate one or more fields

  • 7/30/2019 Iseries Programming Facilities

    26/45

    Add new records

    F9 to insert record in between two existing records

    F10 to add record at the end of file

    You can also use other function keys to refresh, select format and exit .

  • 7/30/2019 Iseries Programming Facilities

    27/45

    Screen Design Aid

  • 7/30/2019 Iseries Programming Facilities

    28/45

    SDA

    SDA is an Interactive tool to design menus and displays used by program

    It is also used to create online help information

  • 7/30/2019 Iseries Programming Facilities

    29/45

    SDA Painting image directly on screen

    SEU coding data description manually

  • 7/30/2019 Iseries Programming Facilities

    30/45

    SDA Menu - STRSDA

  • 7/30/2019 Iseries Programming Facilities

    31/45

    Files, Records, fields

    Display file can contain multiple records

    A record may contain multiple fields

    SDA manages the records for you to cpy, delete, rename anddesign

  • 7/30/2019 Iseries Programming Facilities

    32/45

    Creating new display

  • 7/30/2019 Iseries Programming Facilities

    33/45

    Work screen

    To add Constant : surround your text with single quotes (), eg. Customer

    Field : type + followed by

    char I, O , B ( i/p, o/p, both)

    Num 3, 6, 9 ( i/p, o/p, both)

  • 7/30/2019 Iseries Programming Facilities

    34/45

    Predefined Constant and Field

    Attributes

    You can also use predefined constant like *USER

    *SYSNAME *TIME

    *DATE

    You can define attribute of fields by placing * before anyfield and press enter

    To give a name to the field type ? Before the field

  • 7/30/2019 Iseries Programming Facilities

    35/45

  • 7/30/2019 Iseries Programming Facilities

    36/45

    SDA and Database file

    Press F10 from screen , Select database file screen is dispalyed Select option 1 to display all fields it the file

  • 7/30/2019 Iseries Programming Facilities

    37/45

    Define database field

    Select option

    2 for input 3 for output

    4 for both

  • 7/30/2019 Iseries Programming Facilities

    38/45

    Then you will be returned to the work screen

    All the database fields are listed at the bottom with a number

    You can add this field any where in the work screen by typing &followed by the reference number. E.g.&5

  • 7/30/2019 Iseries Programming Facilities

    39/45

  • 7/30/2019 Iseries Programming Facilities

    40/45

    Record level keywords

    Type option 8then selectrecord levelkeyword basedon your need

  • 7/30/2019 Iseries Programming Facilities

    41/45

    Indicator keyword

  • 7/30/2019 Iseries Programming Facilities

    42/45

    Overlay keyword

    If you do not want this record to clear the screen when it displayed then use thiskeyword . Type Y

  • 7/30/2019 Iseries Programming Facilities

    43/45

    Output keyword This format is not to erase any other format underneath it

  • 7/30/2019 Iseries Programming Facilities

    44/45

    DDS

    SDA will generate DDS based on the information on the screen

    You can view/edit tat using SEU

  • 7/30/2019 Iseries Programming Facilities

    45/45

    Advantages of using both SDA and SEU

    SDA Easily move fields and constant

    Easily change display attributes

    See what display will look before having operationalprogram

    Easily link display fields to database fields

    SEU Easily copy DDS from other display files

    Copy or move section of code from one location to another

    Use global find and repalce Fine-tune a display


Recommended