Iz WSWAPL101 Akahowtojugglefrogs
Iz WSWAPL101 Akahowtojugglefrogs
Iz WSWAPL101 Akahowtojugglefrogs
Variables, Functions,
SENDMAIL, SENDMSG, IF/THEN/ELSE, REXX,
CONSOLE, DISPLAY etc DO/UNTIL/WHILE etc
From PI79321 onwards we recommend the new EQQYXJPX procedure instead of EQQYXJCL
▪ It removes EQQFILE, EQQREF and EQQLANG from the JCL, reducing I/O
▪ EQQOPTS isn’t there by default, but you can code your own
▪ This make WAPL leaner and greener
The two most common PIF commands to get data from the database or plans
Two types
▪ Batch Loader – Reproduces and object in text form
▪ ISPF Loader Streamed Output Notation (ILSON) – Export data segment by segment, field by field
This is native WAPL language and can be used as input to a further WAPL step
Special resources
▪ SRSTART RESNAME(DH#.TEST.RES1) GROUP() HIPER(Y) USEDFOR(B) ONERROR()
DESCR() ONCOMPLETE() MAXTYPE(R) MAXLIMIT(0) QUANTITY(1) AVAIL(Y)
SRDWS WSID(*)
Event Triggers
▪ ETTSTART ETTTYPE(R) ETTNAME(TRIG.TXFB#OPIA) ADID(TXFB#OPIA) JR(N)
DR(Y) AS(N)
The TRANSLATE command can define rules to translate element names in Batch Loader output
▪ The TRANSLATE command should precede any LIST statements
You can script almost anything in the Current Plan using a set of PIF based commands
▪ INSERT CPOC – Add an occurrence to the plan
▪ MODIFY CPOC/CPOP – Modify occurrences or operations
▪ DELETE CPOP/CPOP – Delete occurrences or operations
▪ Plus many more variants
If you can do it through the 5.2 or 5.3 panels, you can probably do it through WAPL
▪ Clean-up and restart being the main exception
ALTER, BIND, FIND, FORCE, HOLD, KILL, NOP, QUEUE_BEHIND, RELEASE, REPLY, UNNOP
Add COUNT(0) to the command and it will hold all matching jobs
Scope can be limited with keywords like DATE, TIME and RANGE
Session NN
https://www.ibm.com/developerworks/community/groups/community/zGlue