PL1 Functions
description
Transcript of PL1 Functions
ADDR -- Built-in function
PL/I Useful StuffADDR -- Built-in function
Returns a pointer value identifying the location of x.
>>--ADDR(x)------------------------------------------------------------->>--ALL(x)-------------------------------------------------------------->>--AREA---------------------------------------------------------------->>--ATTENTION----------------------------------------------------------->>--BACKWARDS----------------------------------------------------------->>--BASED--------------------------------------------------------------->>--CEIL--(--x--)------------------------------------------------------->>--CHAR--(--x------------)--------------------------------------------->>--CONDITION----------------------------------------------------------->>--CONTROLLED---------------------------------------------------------->>--CURRENTSTORAGE--(--x--)--------------------------------------------->>--DATAFIELD----------------------------------------------------------->>--DATETIME------------------------------------------------------------>>--DEFINED----reference------------------------------------------------>>--EMPTY--------------------------------------------------------------->--FETCH----entry-constant----;---------------------------------------->>--IGNORE--(--expression--)-------------------------------------------->>--INDEX--(--x--,--y--)------------------------------------------------>>----EXTERNAL---------------------------------------------------------->>--KEY--(--expression--)----------------------------------------------->>--LABEL--------------------------------------------------------------->--LOCATE--based-variable--FILE--(--file-reference--)------------------->
>-------------------------------------------------------------------;--->>--MOD--(--x--,--y--)-------------------------------------------------->>--NAME--(--file-reference--)------------------------------------------>>--OFFSET-------------------------------------------------------------->>--ONFILE-------------------------------------------------------------->>--ONLOC--------------------------------------------------------------->--PLICKPT--(----argument----)----------------------------------------->--PLIDUMP--(----argument----)----
PLIREST -- Built-In Subroutine
Allows you to restart program execution.
>>--PLIREST---------
PLIRETC -- Built-In Subroutine
Allows you to set a return code that can be examined by the program, system, or subsystem that invoked this
PL/I program or by another PL/I procedure via the PLIRETV built-in function.
>>--PLIRETC--(--return-code--)------
PLIRETV -- Built-In Function
Returns value set by CALL PLIRETC statement or returned by COBOL or ASSEMBLER routine.
>>--PLIRETV------------------------------------------------------------->--PLISRTA--(----argument----)--
POINTER (PTR) -- Built-In Function
Returns a pointer value that identifies, in area y, a generation originally identified by the offset x.
>>--POINTER--(--x--,--y--)---------------------------------------------->>--POSITION--(--expression--)------------------------------------------>>--PROD--(--x--)------------------------------------------------------->>--RECORD--(--file-reference--)---------------------------------------->FWD
WHILE(PTR1=NULL()); ...END;
REPEAT -- Built-In Function
Returns the string x concatenated with itself y times.
>>--REPEAT--(--x--,--y--)----------------------------------------------->>--RETURN------------------------;------------------------------------->--RETURNS--(----attribute----)---------------------------------------->>--SAMEKEY--(--x--)---------------------------------------------------->>--SET--(--pointer-reference--)---------------------------------------->0, 0 if x=0, -1 if x>--SIGN--(--x--)------------------------------------------------------->>--SIZE---------------------------------------------------------------->>--ON--condition--------------SYSTEM--;-------------------------------->>--STATIC-------------------------------------------------------------->>--STORAGE--(--x--)---------------------------------------------------->>--STRING--(--x--)----------------------------------------------------->>--STRINGRANGE--------------------------------------------------------->>--STRINGSIZE---------------------------------------------------------->>--SUBSCRIPTRANGE------------------------------------------------------>>--SUM--(--x--)-------------------------------------------------------->>--ON--condition--------------SYSTEM--;-------------------------------->--DECLARE---------------name-----------------------------------;------>--TASK---------------------------------------------------------------->>--TASK---------------------------------------------------------------->>--TRANSLATE--(--x--,--y------------)---------------------------------->>--TRANSMIT--(--file-reference--)-------------------------------------->0, CEIL(x) if x>--TRUNC--(--x--)------------------------------------------------------>>----ALIGNED----------------------------------------------------------->>--UNDEFINEDFILE--(--file-reference--)--------------------------------->>--UNDERFLOW----------------------------------------------------------->>--+-OUTPUT-+---------------------------------------------------------->>--VARIABLE------------------------------------------------------------>>--VERIFY--(--x--,--y--)----------------------------------------------->