Return to Statement


Extract Portion of a Character String Example

This example demonstrates the use of the SUBSTR function to copy characters from a text string.

   STRING/STR1(32),STR2(32)

Function

Assigned Value

STR1='THIS IS A STRING'

STR1=THIS IS A STRING

STR2=SUBSTR(STR1,ll,6)

STR2=STRING