0% found this document useful (0 votes)
11 views4 pages

BCI433 LECTURE 3 (Practice)

Uploaded by

9558350162j
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

BCI433 LECTURE 3 (Practice)

Uploaded by

9558350162j
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Lecture 3 The User Interface / CL Commands / Message Commands / Spool File / Jobs

- Four different types of screens:

. menu screen
. list screen
. entry screen (command prompt screen)
. information screen

- CL commands can consist of a verb and a noun or a verb, an adjective and a noun. Abbreviations
are used to construct CL commands. Vowels are rarely used in a CL command.

WRK CHG DSP CRT DLT CPY OBJ STR STS SYS WTR

Or use the Wildcard like WRK* or DSP* to see all the commands

- A CL command has two kinds of parameters: required parameter and optional parameter.
- CL Keyword Notation
Command Name Keyword (Value) Keyword(Value) Keyword(Value)

. The parameters can be in any order.

. Function key F11 is very useful to view your keyword for a command

= = = > WRKMSG MSGQ(userlib/userid) OUTPUT(*)

- CL Positional Notation

. When parameter values are entered by position, they must be entered in the order in which they
are specified within the command syntax.

. The F4 prompt lists the parameters in sequence.

= = = > WRKMSG userlib/userid *

- Combination of keyword and positional notation

. The position parameters must occur first, once keyword notation is used, positional notation is no
longer valid, and any additional parameters must be specified in keyword notation.

= = = > WRKMSG userlib/userid OUTPUT(*)

Qualified Command vs Non-Qualified Command

- When you specify a command with library, it is qualified like call mylib/pgma
- When you specify a command without library, it is non-qualified like call pgma
- In a non-qualified command the system will go over your library list and search for pgma

Sending Messages in iSeries

- SNDMSG MSG(WRKACTJOB)
- SBMJOB JOBNAME(MYJOB1) SCDDATE(122522) SCDTIME(230000)
- The above will run the results of Wrkactjob command on Dec 25, 2022 at 23 hundred hours
meaning at 11 pm.
- To check your job if it is scheduled or not, run the command WRKUSRJOB, then press F11 to
look at schedule date/time

Display Job Log information


- DSPJOBLOG output(*) will display on screen
- DSPJOBLOG output(*print) will print a spool file

Spool File

- Spool file is the outcome of a job that is completed or ended


- WRKSPLF command is used to check your spool file
- You can run various options to change, delete, display, print, send etc your spool file
- To delete all your spool files, use the command DLTSPLF *select (Meaning it will delete all
your spool files)
- Always press F5= Refresh to refresh your screen after running any command

- Submit a Job
- -Sbmjob
- Looking at your job
- -Wrkusrjob
- F11 is for Keywords
- F9 is for retrieve
- F5 is for Refreshing your screen
- Spool files
- - Wrksplf
- Sending messages
- -Sndmsg
- Display messages
- -dspmsg

- Creating Jobq
- - Crtjobq
- - Wrkjobq
- - Addjobqe To attach your Jobq with Sub-System
- Creating Outq
- crtoutq
- - wrkoutq

/////// F11 for keyword notation and F4 for more info


dspusrprf usrprf(CE437A23) or dspusrprf CE437A23 both do the same work.

SNDMSG MSG(WRKACTJOB) /// for sending message after this press F4 add some message and
then your library, press enter

Press F9 to view your previous command

Dspmsg // for displaying message

//////

Sbmjob // press F4 dsplibl some job name scroll down and check date and time enter

Wrkusrjob // details for the job submitted

//////

dspjoblog // press enter, press F10 scroll up you will see all your jobs.

For print press F4 dspjoblog then type *print and then wrksplf and then 5 to see all activity

/////

Outq is a spool file

For making spool file

Wrkusrjob // to see all the submitted jobs

Dltsplf *select /// for deleting all spool files together

///

crtjobq
Wrkjobq azjan31 /// you will see nothing but later on do this,

After this we need to change its system so do wrkjobq azjan31

And 2- for change, press F10

After this,

Wrkusrjob, and it will be deleted and after this press 8 and spool file is there.

///crtoutq /// same as crtjobq

You might also like