Upload
godfrey-park
View
219
Download
3
Embed Size (px)
Citation preview
1
REVIEW
Object types - ????System security levels - ????Current library - How is it assigned ????
How do you change it???Qualified naming - What is it????System values - What are they ???
How do you see them????Special values - Identified How?
Where used? Assistance levels - What are the levels available ??
How do you control them???Library lists - Why used ????Messages - Sending and receiving ??Function Key’s ??????
2
Chapter 4
working with jobsHandling messages
3
Consists of a set /group of related (one or many) programs
Receives all of its attributes from one or all
System values, User profile, a job description, inheritance such as
name, library list, datefmt, queue, output - run priorities,message logging level, printer.
We use the QDFTJOBD (IBM supplied) as a default job description here at Seneca.
CommandsDSPJOB, WRKJOB, CHGJOB
related commands CRTJOBD, WRKJOBD, CHGJOBD
A JOB
4
Work with Jobs Command• To display information about your current
Interactive job, simply type: WRKJOB• To display information about any other job,
use the Work With Job and enter the Job Name and User. Sometimes qualification required.
• To display your submitted and still outstanding Batch Jobs, use the Work with Submitted Jobs Commands (WRKSBMJOB) and Select from the list presented.
5
WRKJOB Work with Job (WRKJOB)
Type choices, press Enter.
Job name . . . . . . . . . . . . * Name, *
User . . . . . . . . . . . . . Name
Number . . . . . . . . . . . . 000000-999999
Output . . . . . . . . . . . . . * *, *PRINT
Option . . . . . . . . . . . . . *SELECT *SELECT, *STSA, *DFNA...
Or use GO ASSIST and use option 2
6
ASSIST AS/400 Operational Assistant (TM) Menu System: ODIN To select one of the following, type its number below and press Enter: 1. Work with printer output 2. Work with jobs (work with user jobs) 3. Work with messages 4. Send messages 5. Change your password 10. Manage your system, users, and devices 11. Customize your system, users, and devices 75. Information and problem handling 80. Temporary sign-off Type a menu option below == > 2 F1=Help F3=Exit F9=Command line F12=Cancel
GO ASSIST
7
SYSTEM General System Tasks System: ODIN Select one of the following: 1. Jobs (provides a menu related to jobs 2. Status 3. Display system operator messages 4. Messages 5. Files, libraries, and folders 6. Save 7. Restore 8. Device operations 9. Communications 10. Security 60. More system task options Selection or command ===> 1 F3=Exit F4=Prompt F9=Retrieve F12=Cancel F13=Information Assistant F16=AS/400 Main menu (C) COPYRIGHT IBM CORP. 1980, 1999.
GO SYSTEM
8
JOB Jobs System: ODIN Select one of the following: 1. Work with jobs 2. Work with all active job statistics 3. Work with spooled output files 4. Work with printers 5. Work with job queues 6. Work with active subsystems 7. Submit a job 20. Control job environment 60. More job options 70. Related commands Selection or command ===> 1 F3=Exit F4=Prompt F9=Retrieve F12=Cancel F13=Information Assistant F16=AS/400 Main menu
OPTION 1
9
Work with Job System: ODIN Job: QPADEV003X User: ABERNS Number: 404631 Select one of the following: 1. Display job status attributes 2. Display job definition attributes 3. Display job run attributes, if active 4. Work with spooled files 10. Display job log, if active or on job queue 11. Display call stack, if active 12. Work with locks, if active 13. Display library list, if active 14. Display open files, if active 15. Display file overrides, if active 16. Display commitment control status, if active More... Selection or command ===>
WRKJOB cont’dDefaults to your current session / job
10
WRKUSRJOB
• Shows you a list of all of the jobs owned by the selected user
regardless of the subsystem
• Status – Active = Job is currently running– Outq = Job is finished– Jobq = Job is waiting to process.
• To delete a ‘run-away’ job, take option 4
11
WRKUSRJOB continued GO ASSIST 10, 12
Work with User Jobs ODIN
10/15/00 17:47:59
Type options, press Enter.
2=Change 3=Hold 4=End 5=Work with 6=Release 7=Display message
8=Work with spooled files 13=Disconnect
Opt Job User Type -----Status----- Function
___ DA234E29 DA234E29 INTER ACTIVE CMD-STRSEU
___ QPADEV000M DA444A32 INTER ACTIVE CMD-STRSEU
___ QPADEV000Q DA444B31 INTER ACTIVE CMD-WRKOBJPDM
___ QPADEV000W DA400D12 INTER ACTIVE CMD-STRSEU
___ QPADEV001C DA540A28 INTER ACTIVE CMD-STRSEU
___ QPADEV001D DA444B25 INTER ACTIVE CMD-STRSEU
___ QPADEV001F DA234F20 INTER ACTIVE CMD-WRKOBJPDM
___ QPADEV001G DA234F37 INTER ACTIVE CMD-WRKLIBPDM
___ QPADEV001H DA400C02 INTER ACTIVE MNU-MAIN
___ QPADEV001K CE544B06 INTER ACTIVE CMD-STRPDM
More...
Parameters or command
===>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Display schedule data
F12=Cancel F21=Select assistance level
12
Parameters or command ===> WRKACTJOB Shows all currently active jobs and the current status
Parameters or command ===> WRKACTJOB OUTPUT(*PRINT)
Or redirect to the printer
13
Work with Active Jobs ODIN 02/07/01 20:48:54 CPU %: 7.7 Elapsed time: 00:00:27 Active jobs: 191 Type options, press Enter. 2=Change 3=Hold 4=End 5=Work with 6=Release 7=Display message 8=Work with spooled files 13=Disconnect ... Opt Subsystem/Job User Type CPU % Function Status ___ QCMN QSYS SBS .0 DEQW ___ QCTL QSYS SBS .0 DEQW ___ QSYSSCD QPGMR SBS .0 DEQW ___ QPADEV000D DB344D21 INT . 0 CMD-STRSEU DSPW ___ QPADEV000F DB344D21 INT .0 CMD-WRKJOB DSPW ___ QPADEV000M DB444A11 INT .0 CMD-STRPDM DSPW ___ +QPADEV001C DB344C11 INT .0 CMD-STRSEU DSPW ___ QPADEV001H CE534B03 INT .0 CMD-STRPDM DSPW More... Parameters or command ===> F3=Exit F5=Refresh F7=Find F10=Restart statistics F11=Display elapsed data F12=Cancel F23=More options F24=More keys
WRKACTJOB F14 Include
14
Change Job (CHGJOB) Option 2 on list screen Type choices, press Enter. Job name . . . . . . . . . . . . > QPADEV003X Name, * User . . . . . . . . . . . . . > ABERNS Name Number . . . . . . . . . . . . > 404631 000000-999999 Job priority (on JOBQ) . . . . . *SAME 0-9, *SAME Output priority (on OUTQ) . . . 5 1-9, *SAME Print device . . . . . . . . . . PRT01 Name, *SAME, *USRPRF... Output queue . . . . . . . . . . ABERNS Name, *SAME, *USRPRF, *DEV... Library . . . . . . . . . . . ABERNS Name, *LIBL, *CURLIB Run priority . . . . . . . . . . 20 1-99, *SAME Additional Parameters Job queue . . . . . . . . . . . *SAME Name, *SAME Library . . . . . . . . . . . Name, *LIBL, *CURLIB Print text . . . . . . . . . . . *BLANK More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
WRKACTJOB cont’d
15
Change Job (CHGJOB) Type choices, press Enter. Message logging: Level . . . . . . . . . . . . 4 0-4, *SAME Severity . . . . . . . . . . . 00 0-99, *SAME Text . . . . . . . . . . . . . *NOLIST *SAME, *MSG, *SECLVL, *NOLIST Log CL program commands . . . . *NO *SAME, *YES, *NO Inquiry message reply . . . . . *RQD *SAME, *RQD, *DFT, *SYSRPYL Break message handling . . . . . *NORMAL *SAME, *NORMAL, *NOTIFY... Status message . . . . . . . . . *NORMAL *SAME, *USRPRF, *SYSVAL... DDM conversation . . . . . . . . *KEEP *SAME, *KEEP, *DROP Schedule date . . . . . . . . . *SAME Date, *SAME, *CURRENT... Schedule time . . . . . . . . . *SAME Time, *SAME, *CURRENT Job date . . . . . . . . . . . . 020701 Date, *SAME Date format . . . . . . . . . . *MDY *SAME, *SYSVAL, *YMD, *MDY... Date separator . . . . . . . . . '/' *SAME, *SYSVAL, *BLANK, /... Time separator . . . . . . . . . ':' *SAME, *SYSVAL, *BLANK, :... Job switches . . . . . . . . . . 00000000 Character value, *SAME More... F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
WRKACTJOB / CHGJOB cont’d 2
16
Change Job (CHGJOB) Type choices, press Enter. Time slice . . . . . . . . . . . 1500 Milliseconds, *SAME Eligible for purge . . . . . . . *YES *SAME, *YES, *NO Default wait time . . . . . . . 30 Seconds, *SAME, *NOMAX Device recovery action . . . . . *DSCMSG Time slice end pool . . . . . . *NONE *SAME, *SYSVAL, *NONE, *BASE Print key format . . . . . . . . *PRTHDR *SAME, *SYSVAL, *NONE... Sort sequence . . . . . . . . . *HEX Name, *SAME, *USRPRF... Library . . . . . . . . . . . Name, *LIBL, *CURLIB Language ID . . . . . . . . . . ENU *SAME, *SYSVAL... Country ID . . . . . . . . . . . US *SAME, *SYSVAL... Coded character set ID . . . . . 65535 *SAME, *USRPRF, *SYSVAL... Job message queue full action . *NOWRAP *SAME, *SYSVAL, *NOWRAP... Decimal format . . . . . . . . . *BLANK *SAME, *SYSVAL, *BLANK, I, J Character identifier control . . *DEVD *SAME, *USRPRF, *SYSVAL... Duplicate job option . . . . . . *SELECT *SELECT, *MSG Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
WRKACTJOB / CHGJOB cont’d 3
17
SBMJOB (executed once only)
Command to run . . . . . . . . . call ar010 .
... Job name . . . . . . . . . . . . myjob Name, *JOBD Job description . . . . . . . . *USRPRF Name, *USRPRF Library . . . . . . . . . . . Name, *LIBL, CURLIB Job queue . . . . . . . . . . . *JOBD Name, *JOBD Library . . . . . . . . . . . Name, *LIBL, CURLIB Job priority (on JOBQ) . . . *JOBD 1-9, *JOBD Output priority (on OUTQ) *JOBD 1-9, *JOBD Print device . . . . . . . . . . *CURRENT Name, *CURRENT,
*USRPRF...
SBMJOB CMD(CALL PGM(AR010)) JOB(MYJOB) SCDTIME(2330)
18
SBMJOB continuedF10 additional parameters used
+ for more values
Message logging:
Level . . . . . . . . . . . . *JOBD 0-4, *JOBD
Severity . . . . . . . . . . . *JOBD 0-99, *JOBD
Text . . . . . . . . . . . . . *JOBD *JOBD, *MSG, *SECLVL, *NOLIST
Log CL program commands . *JOBD *JOBD, *NO, *YES Inquiry message reply . . . . . *JOBD *JOBD, *RQD, *DFT, *SYSRPYL Hold on job queue . . . . . . . *JOBD *JOBD, *NO, *YES Schedule date . . . . . . . . . *CURRENT Date, *CURRENT, *MONTHSTR... Schedule time . . . . . . . . . 2330 Time, *CURRENT
Job date . . . . . . . . . . . . *JOBD Date, *JOBD, *SYSVAL
19
WRKJOBSCDE (repetitive jobs at regular intervals)
Work with Job Schedule Entries (WRKJOBSCDE)
Type choices, press Enter.
Job name . . . . . . . . . . . . *ALL Name, generic*, *ALL
Output . . . . . . . . . . . . . * *, *PRINT
Additional Parameters
Sequence . . . . . . . . . . . . *JOB *JOB, *DATETIME, *JOBQ
Scheduled by user . . . . . . . *ALL Name, *ALL
Submit date . . . . . . . . . . *ALL Date, *ALL, *CURRENT
Job queue . . . . . . . . . . . *ALL Name, *ALL
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
20
WRKJOBSCDE (scheduled JOB’s list)
Work with Job Schedule Entries ODIN 02/07/01 21:45:14
Type options, press Enter.
2=Change 3=Hold 4=Remove 5=Display details 6=Release
8=Work with last submission 10=Submit immediately
Next
-----Schedule------ Recovery Submit
Opt Job Status Date Time Frequency Action Date
__ ABASGNMT2 HLD *ALL 02:00:00 *WEEKLY *SBMRLS 02/08/01
__ ABDUL1 SCD *FRI 16:00:00 *WEEKLY *SBMRLS 02/09/01
__ ACKER SCD *FRI 20:47:05 *WEEKLY *SBMRLS 02/09/01
__ ASNCHK2SLB HLD *ALL 23:55:00 *WEEKLY *SBMRLS 02/07/01
___ ASSNCHK2SL HLD *ALL 11:49:30 *WEEKLY *SBMRLS 02/08/01
__ DEBCHK SCD *ALL 16:00:00 *WEEKLY *SBMRLS 02/08/01
__ DRAGA SCD *FRI 08:25:54 *WEEKLY *SBMRLS 02/09/01
More...
Parameters or command
===>
F3=Exit F4=Prompt F5=Refresh F6=Add F9=Retrieve
F11=Display job queue data F12=Cancel F17=Top F18=Bottom
21
Change Job Schedule Entry (CHGJOBSCDE) Type choices, press Enter. Job name . . . . . . . . . . . . > ABASGNMT2 Name Entry number . . . . . . . . . . > 000066 000001-999999, *ONLY Command to run . . . . . . . . . CALL PGM(AB234MRKA2/ASSNCHK) Frequency . . . . . . . . . . . *WEEKLY *SAME, *ONCE, *WEEKLY... Schedule date, or . . . . . . . *NONE Date, *SAME, *CURRENT... Schedule day . . . . . . . . . . *ALL *SAME, *NONE, *ALL, *MON... + for more values Schedule time . . . . . . . . . '02:00:00' Time, *SAME, *CURRENT Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys
OPTION 2
22
WRKJOBQ
Work with Job Queue (WRKJOBQ)
Type choices, press Enter.
Job queue . . . . . . . . . . . *ALL Name, generic*, *ALL
Library . . . . . . . . . . . Name, *LIBL, *CURLIB, *ALL
Output . . . . . . . . . . . . . * *, *PRINT
or use GO ASSIST option 12
23
WRKJOBQ continued
Work with All Job Queues Type options, press Enter. 3=Hold 4=Delete 5=Work with 6=Release 8=Work with job schedule entries 14=Clear
Opt Queue Library Jobs Subsystem Status ___ QINTER QGPL 0 QINTER RLS ___ QPGMR QGPL 0 RLS ___ QSNADS QGPL 0 RLS
__ QSPL QGPL 0 QSPL RLS etc. etc
24
some JOB related command
DSPJOBLOG
WRKACTJOB
CHGJOB
DSPJOB
WRKSBSJOB
WRKUSRJOB
etc. etc.
SBMJOBWRKJOBSCDEADDJOBSCDEHLDJOBSCDEetc.
25
MESSAGES
Send in BREAK or NOTIFY modetype
INFO or INQuiry
SEVERITY CODES00 - 99
00 - informational10 - warning20 - error30 - severe error40 - Severe error with Abort50 - Abort job or program
Sent to QSYSOPR only
60 - system status70 - Device integrety80 - System Alert90 - System integrety
and user msgs99 - Action required
26
WRKMSG or DSPMSG Work with Messages (WRKMSG)
Type choices, press Enter.
Message queue . . . . . . . . . *WRKUSR Name, *WRKUSR, *SYSOPR...
Library . . . . . . . . . . . Name, *LIBL, *CURLIB
Output . . . . . . . . . . . . . * *, *PRINT
Additional Parameters
Message type . . . . . . . . . . *ALL *ALL, *INFO, *INQ, *COPY
Severity code filter . . . . . . 0 0-99, *MSGQ
Assistance level . . . . . . . . *PRV *PRV, *USRPRF, *BASIC...
27
WRKMSG continued
Display Messages System: ODIN
Queue . . . . . : ABERNS Program . . . . : *DSPMSG
Library . . . : QUSRSYS Library . . . :
Severity . . . : 00 Delivery . . . : *NOTIFY
Type reply (if required), press Enter.
From . . . : CE234B07 10/08/00 20:06:05
this is a test
From . . . : CE234B07 10/08/00 20:07:10
********message ***********************8
Job 067658/ABERNS/QDFTJOBD completed normally on 10/11/00 at 11:23:46.
Job 067660/ABERNS/QDFTJOBD completed normally on 10/11/00 at 11:24:01.
Bottom
F3=Exit F11=Remove a message F12=Cancel
F13=Remove all F16=Remove all except unanswered F24=More keys
28
WRKMSG continued
Additional Message Information (Using cursor positioning and F1)
Message ID . . . . . . : CPF1240 Severity . . . . . . . : 50
Message type . . . . . : Completion
Date sent . . . . . . : 10/11/00 Time sent . . . . . . : 16:50:09
Message . . . . : Job 070258/ABERNS/ASSNCHK ended abnormally.
Cause . . . . . : Job 070258/ABERNS/ASSNCHK ended abnormally on 10/11/00 at
16:50:09. One of the following occurred:
-- The job was ended (ENDJOB command).
-- The subsystem in which the job was running was ended (ENDSBS command).
-- An error occurred.
Recovery . . . : Display the job log (DSPJOBLOG command) for information
why the job or subsystem ended abnormally. Correct the error and try the
request again.
Bottom
Press Enter to continue.
F3=Exit F6=Print F9=Display message details F12=Cancel
F21=Select assistance level
29
WRKMSG / DSPMSG continuedF22
Display List Details
Message queue . . . . . : ABERNS
Library . . . . . . . : QUSRSYS
Delivery . . . . . . . : *NOTIFY
Program . . . . . . . . : *DSPMSG
Allow jobs to reply . . : *ALWRPY
Severity . . . . . . . : 0
Allow alerts . . . . . : *NO
CCSID . . . . . . . . . : 65535
Message queue full . . : *SNDMSG
Description . . . . . . : ABERNS
30
CHGMSGQChange Message Queue (CHGMSGQ)
Type choices, press Enter.
Message queue . . . . . . . . . ABERNS Name, generic*, *USRPRF...
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB...
Delivery . . . . . . . . . . . . *SAME *SAME, *HOLD, *BREAK...
Severity code filter . . . . . . *SAME 0-99, *SAME
Text 'description' . . . . . . . *SAME
Additional Parameters
Break handling attributes:
Break handling program . . . . *SAME Name, *SAME, *DSPMSG
Library . . . . . . . . . . Name, *LIBL, *CURLIB
Allow other jobs to reply . . *NOALWRPY, *ALWRPY
Reset old messages . . . . . . . *NO *NO, *YES
Force to auxiliary storage . . . *SAME *SAME, *NO, *YES
Allow alerts . . . . . . . . . . *SAME *SAME, *NO, *YES
More...
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys
31
Some MESSAGE related commands
DSPMSG SNDMSG TO MSG QUEUE’S
RCVMSG SNDBRKMSG TO WORKSTATION MSG Q
RMVMSGMONMSG (only used in a CL program)
32
Display Job Log (DSPJOBLOG) Type choices, press Enter. Job name . . . . . . . . . . . . *_________ Name, * User . . . . . . . . . . . . . __________ Name Number . . . . . . . . . . . . __________ 000000-999999
Output . . . . . . . . . . . . . *_________ *, *PRINT, *APIDFN, *OUTFILE
Display Job Log System: ODIN Job . . : QPADEV003X User . . : ABERNS Number . . . : 404631 6>> DSPJOBLOG
Press Enter to continue. F3=Exit F5=Refresh F10=Display detailed messages F12=Cancel F17=Top F18=Bottom
33
Display All Messages System: ODIN Job . . : QPADEV003X User . . : ABERNS Number . . . : 404631 Error found on DSPMSGF command. 6 > dsperrmsg Command DSPERRMSG in library *LIBL not found. Error found on DSPERRMSG command. 6 > DSPMSG 6 > go cmdmsg 9 > DSPMSGD MSGF(QMCHMSG) Message file QMCHMSG in *LIBL not found. 9 > DSPMSGD 6 > DSPMSGD 6 > DSPMSGD RANGE(*ALL) 6 > sndmsgD RANGE(*ALL) Command SNDMSGD in library *LIBL not found. Error found on SNDMSGD command. More... Press Enter to continue. F3=Exit F5=Refresh F12=Cancel F17=Top F18=Bottom
DSPJOBLOG F10 / PAGE DOWN
34
Operations Navigator
• Graphical User Interface for AS/400
• Used for:– Displaying messages– Displaying Spool files– Database operations
• To install Operations Navigator on your PC– go to ACS, Downloads, sign in, AS/400 on the
cd.senecac.on.ca website and retrieve Client Access / Operations Navigator. Install it and if you need help they also have answers for you.
35
36