Top Banner

of 15

Short Note Commands

Apr 04, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/29/2019 Short Note Commands

    1/15

    Create Libraries,Source Files,physical files

    CRTLIB

    used to create a new Library

    Press F4

    To work with libraries

    WRKLIB

    you can create,change,copy,delete,display,....the library.

  • 7/29/2019 Short Note Commands

    2/15

    Create a Source file

    Source files are sub folders which contains source members that are source files to a program.

    CRTSRCPF

    PRESS F4

    Then it will create a source physical file inside the specified library.

    (eg:- STUDY8014)

    to create source members we have to go inside the created source physical file.

    To do that press WRKMBRPDM + F4

    press enter to go inside the source folder

  • 7/29/2019 Short Note Commands

    3/15

    To create a physical file

    physical files are sources for the database tables. These physical files contains the actual data. the type

    of these objects are PF.

    After go to the pdm by using WRKMBRPDM then press F6 to create its members.

    Give the Library, source file, source member name, source member type, and the description.

  • 7/29/2019 Short Note Commands

    4/15

    Then to insert a new line type I as mentioned in the below picture and press enter.

    Then it will give a new record

    To enter values in the keep cursor in one line and press F4

    To delete a line type D in the front of the line and press enter

  • 7/29/2019 Short Note Commands

    5/15

    It will delete a single line

    To delete multiple lines type DD in the front of the lines you want to delete

    It will delete relevant lines

  • 7/29/2019 Short Note Commands

    6/15

    Copy a line after another line

    You have to put C for the line that is being copied and A represent after the line.

    Same as we can use B for before a line.

    Type 14 to compile a physical file.

  • 7/29/2019 Short Note Commands

    7/15

    If it compiled successfully it will give a successful message. If an object already exists it will give the

    message accordingly.

    To insert values use the query language facility

    STRSQL

    1st method of insert values to the table

    You can insert values using the sql insert operations. the table name will be the corresponding physical

    file name.

  • 7/29/2019 Short Note Commands

    8/15

    2nd method of insert values to the table

    STRDFU

    Select Run a DFU program

  • 7/29/2019 Short Note Commands

    9/15

    Give the database PF name and the library name

    press F9 key to go to insert window

    Type the values for the attributes

  • 7/29/2019 Short Note Commands

    10/15

    press F3 and go back then it will show number of records added to the table.

  • 7/29/2019 Short Note Commands

    11/15

  • 7/29/2019 Short Note Commands

    12/15

    GO VERB

  • 7/29/2019 Short Note Commands

    13/15

  • 7/29/2019 Short Note Commands

    14/15

    So type GOCMD+comand type

    if you know the part of the command you can use * mark.Eg:- CRT* , DSP*

    Library List

    library list are used to give the access to user libraries. when the system, look for a AS/400 object it will

    find it in libraries in the order of library list. Since it first search it in the system library and all thecommands resides in the system library , users can run the commands.

    DSPLIBL

    To see the library list. It will consist of 3 things.

    1)The SYS libraries have operating system objects. This is where the AS/400 commands and

    menus are contained.2) The CUR library is your current library. This is your first user library and is where objects are

    created if you don't specify which library to use.

    3) The USR libraries list your other user libraries.

    EDT LIBL:- to edit the library list

    we can only change the USR libraries using CHGLIBL

    CHGLIBL :- to change the library list

  • 7/29/2019 Short Note Commands

    15/15

    PDM

    PDM provides a way to enter program source statements and then to compile the statements into

    executable programs. The source statements are needed only for the compiler. The compiled programs

    are the objects that are actually run on the AS/400. The source code and the compiled objects areseparate things. But it is easy to confuse the two. At times, you may try to open the compiled object

    with PDM when you really mean to open the source code used to create the compiled object.

    The source code files can have any name but conventionally the names start with Q and end with SRC,

    for source. Typically:

    QCLSRC is the file for the CL program source statements

    QDDSSRC is for the DDS program source statements

    QRPGSRC is for the old RPG language

    QRPGLESRC is for the new RPG/ILE language

    QMNUSRC orQMENUSRC is formenus

    QCBLSRC orQLBLSRC is forCOBOLQCMDSRC is forcommands