- series of CL commands to accomplish a task
it is an administrator language.
Member type is clp.
It is not a position oriented language .
it consist of 3 sections
1)parameter section
2)declaration section
3)executable section
Cl program must start with PGM and end with ENDPGM.
cl programs are not structured.
cl programs are implemented in mumbers attached to preferably in qclsrc file.
Helpful AS400 commands
ReplyDeleteGO CMDCMD - Menu of all available AS/400 commands
CRTSAVF - Create a Save File for SAVLIB
CVTRPGSRC - Convert RPG code to ILE will need to create
QRNCVTLG
DLTSPLF *SELECT - Delete all your spool files
DSPDBR - Display Data Base relationship
DSPPGMREF - Display files and calls
ENDDBG - End Debug
ENDPASTHR - End Pass Through
RTVCLSRC - Retrieve CL Source
RTVNETA - Retrieve Net attributes
RTVQMQRY QMQRY(YourQry) SRCFILE(yourLib/yourSrcPF)
ALWQRYDFN(*YES)
RTVSYSVAL - Retrieve System Values
RUNSQLSTM - Run SQL Statement
SAVLIB LIB(BGLAD1) DEV(*SAVF)
SAVF(CUSTSV) SAVACT(*SYSDFN)
ACCPTH(*YES)
STRAFPU - IBM Advanced Function Printing Utilities for
iSeries
STRDBG - DEBUG
STRISDB - for Debug RPG Programs (will not work for ILE)
STRPASTHR - Start Pass through to a Remote Location
STRPCCMD PCCMD('c:\windows\desktop\test.bat')
Execute a command from PC
STRSRVJOB - Start Service Job
WRKFLR - Work with Folders
WRKJOBSCDE - Work Job Schedule Entry
WRKOBJLCK - Work with Object Locks
WRKPAGSEG - Wrk Page Segments