Professional Documents
Culture Documents
CL Programming
Library
CRTMBR
Programmer PF-SRC *PGM
CLP
CL
Compile
Commands
LPEX CRTMBR
SEU CLP
COMM +
AND PARAMETER PARMETER
COMMAND PARAMETER PARA +
METER
Operating
Data Program Data Printout
System
RTVJOBA USER(&USERID)
LIFE INSURANCE DOMAIN TRAINING
Copyright 2009 by Janson Industries 17 17
Sending Data to a User
Library
CRTMBR
PF-SRC *PGM
CLP
MSGQ
CRTMBR Compilation
CLP Compile Report
Library
CRTMBR EVFEVENT
PF-SRC *PGM *FILE
CLP PF-DTA
CRTMBR CRTMBR
CLP Compile
___
24
LIFE INSURANCE DOMAIN TRAINING 24
Copyright 2009 by Janson Industries
Verifying in RDi
Why bother?
To compile you must be able to
communicate to the IPS
Verifying doesn't require
communicating to the IPS
Verifying faster than compiling
No verifier for CL programs!!
• Can be viewed
– Using Navigator's Viewer
– WRKSPLF
Bottom
Parameters for options 1, 2, 3 or command
===>
F3=Exit F10=View 4 F11=View 2 F12=Cancel F22=Printers F24=More keys
• General Information
• Allows you to search for a character string within the compilation report
• Case sensitive
• To find a string:
– Enter the text in the find area
– Press F16
Message Summary
Severity
Total 0-9 10-19 20-29 30-39 40-49 50-59 60-69 70-79 80-89 90
8 0 3 0 2 3 0 0 0 0
Program COMPILEEX not created in library GRADES. Maximum error severity 40.
* * * * * E N D O F M E S S A G E S U M
• Source code that compiles can still have fail when run
• Why?
– Non-syntax errors
• Endless loop
– User input errors
– Missing resources
• A required library or file does not exist
Selection or command
===> call library99/testpgm parm("library98")___________________________________
_______________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F10=Command entry
F12=Cancel F18=Change defaults
Error found on CALL command.
Message ID . . . . . . : CPD0172
Date sent . . . . . . : 05/15/09 Time sent . . . . . . : 10:41:52
Cause . . . . . : The parameters passed on the CALL command do not match the
parameters required by program TESTPGM in library LIBRARY99. Correct program
not found or correct parameters not passed. The number of parameters or the
type of parameters passed on the CALL command must match those expected by
the program called.
Recovery . . . : If correct program not found, change or specify the
library name on the command or in a library list. Change the CALL command
and then try the command again.
Bottom
Press Enter to continue.
Bottom
Press Enter to continue.
• As mentioned, some run time errors are not the result of incorrect
programming:
– Incorrect user input
– Lack of authority
– No data
• The program should not end when these types of errors occur
• The program should check for these conditions and provide user
friendly messages
Programmer specifies:
Name of new command
Library Prompt screen member
Program to run for command
NEWCMD PGMTORUN
PF-SRC
*CMD *PGM
CLP
Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys
Command to be created
Program that will be called
Prompt screen to display (source definition)
LIFE INSURANCE DOMAIN TRAINING
Copyright 2009 by Janson Industries 64 64
Points to Remember