JJ Mois Année
As400 Basics
Support knowledge transfer
Summary
JJ Mois Année
Object and verbs
Command input (CL language)
PDM Tools
Save and restore *SAVF
Objects and verbs
• All on as400 system is object here are the main objects :
- *LIB : library (contain other object)
- *FILE : file (contain data)
- *PGM : program
- *DTAARA : Small container for data.
- *DTAQ: data queue (area to store data temporary waiting for treatment)
- *JOB : even job on as400 are object
• To act on object you use abstract verbs as :
- CRT for create
- DLT for delete
- DSP for display
- WRK for work with
As400 Basics 3
Command input (CL language)
•commands are a combination of verbs and object example “CRTLIB” to create library
• to list all command related to an object : go CMD<object>
•Help command display (F4 after input a command)
- F1 give you help on the command or on the parameter (if you put the cursor on parameter)
- F4 give you the all value that could be input in a parameter
- F9 display complementary parameter
- F11 display the name of parameter (that can be found if you call back a command after
execution)
• CL program are just a succession of as400’s command with some complementary key words
- beginning by : PGM PARM( )
- DCL to declare variable (all variable begin with ‘&’)
- Using some label to jump directly to a part of your program
- Finishing by ENDPGM
As400 Basics 4
Command input
EXERCISE N°1
The goal of this exercise is to practice with some as400 command.
1. Create a library XXXTRNG (where XXX is your trigram)
2. Create a *DTAARA XXXDTAARA in this library for character value, length 200
3. Change this *DTAARA to have the value “SUCCESS” on the third character of this
*DTAARA.
4. Display this *DTAARA to see the result of your exercise
As400 Basics 5
PDM Tool
• PDM is an utility that permit you to easily manage object on as400 (STRPDM)
• Screen of PDM
Option that you
can use on
object
Object’s list
Keys available
As400 Basics 6
PDM Tools
EXERCISE N°2
1. Copy all the file name VJAFILEX (where X is a number) without using PDM renaming them using
your own trigram (XXXFILEX)
2. Delete them without PDM
3. Do the same task using PDM
As400 Basics 7
Save and restore SAVF
• SAVF are file used to save objects or libraries
• in order to save objects or libraries you have to first create or clear a SAVF file.
• Then use command SAVOBJ or SAVLIB
•To restore objects or libraries use the following command RSTOBJ and RSTLIB
- Just pay attention to the save library and restore library parameter
As400 Basics 8
Questions
Any questions?
As400 Basics 9