The Below Rexx function STRREPLACE can replace a part of a string with a new one /*REXX*/ MYSTR = ‘MY TEST STRING’ SAY MYSTR MYSTR = STRREPLACE(MYSTR,”TEST”,”NEW”) SAY MYSTR EXIT /* A FUNCTION TO DO A STRING REPLACE */ STRREPLACE: ORIGINAL = ARG(1) OLDTXT = ARG(2) NEWTXT = ARG(3) NEWSTR = ORIGINAL DO WHILE POS(OLDTXT,NEWSTR) [...]
-
Search
-
Easytrieve PDF
-
Topics
-
Easytrieve
- Variable declaration
- Working Storage variables
- COMP and COMP-3 equivalent variables
- Equivalent functionality for REDEFINES
- OCCURS clause
- FILE-STATUS and EOF (End of File)
- JOB INPUT statements
- Moving Numeric values between variables
- File Handling
- GET and PUT statements
- READ and WRITE statements
- Arithmetic and Logical operators
- Reading VSAM File
- Update RE-WRITE VSAM File
- Report creation sample
- Synchronized Files
- Using Files as Lookup tables
- Embedded DB2 SQL
- DO WHILE clause
- CASE WHEN statement
- Easytrieve Macros
- Keywords
-
DB2
- Logical Operators
- Using MAXASSIGNEDVAL from SYSIBM.SYSSEQUENCES (IBM DB2 for Z OS)
- Creating (Declaring), Inserting data into DB2 temporary tables
- Using IKJEFT01 for Binding a normal batch DB2 program
- Using IKJEFT01 for running a normal batch DB2 program
- Running DSNTIAUL using IKJEFT01 for batch unload
- Running DSNTEP2 / DSNTEP4 using IKJEFT01 for batch SQL(DB2) processing
-
Recent Comments
- Karthik on Moving Numeric values between variables in Easytrieve
- pavan on Moving Numeric values between variables in Easytrieve
- EDIT MASKS – Masking variables in Easytrieve on Easytrieve – Variable declaration
- Easytrieve – File Handling and File Declaration on Easytrieve MACROs (Copybook)
- Karthik on Easytrieve File matching : Synchronized Files
-
Subscribe