Since you said you wanted to improve your REXX skills, let me add the following 
(I'm aware you might already know this):

>KEY = '**'
>CSIFILTK = SUBSTR(KEY,1,44)
...
>CSICATNM = SUBSTR('<catalog name>',1,44)

You might wonder why the CSI* variables are filled using the substr() function. 

There is a special behavior of substr(), left(), right() in REX that I haven't 
seen in other languages (and have indeed been missing there): If the source 
string is *shorter* than the target length specified in the function call, the 
source string is paded with blanks to make the result a string of the desired 
length.

You can even decide to use a different padding character: All of these 
functions allow an additional parameter, telling it the padding character to be 
used.


HTH
--
Peter Hunkeler


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to