Scan & Replace - %scanrpl - Built-in function in IBM i / AS400
Source Code for %scanrpl Built-in Function:-
**Free
// Variable Declaration
DCL-S String Varchar(50) INZ;
DCL-S Result Varchar(50) INZ;
String = 'Replace BIF in RPGLE';
// Displaying String Variable
Dsply String;
// %scanrpl (Scanstring : Replacement String : Source String)
Result = %scanrpl('BIF' : 'Built-in Function' : String);
// Displaying the output variable
Dsply Result;
*inlr = *on;
Subscribe Tech Sharmit for more videos on IBMi / AS400
Please refer to the below video for the same topic.
Comments
Post a Comment