Quoted strings always gave me grief. I started to use Q='7D'X and concatenate my strings this way:
Str = Q||DsNAme||Q. LISTDSI(Str) PROF NOPREFIX works but can leave you that setting when you don't want it on termination. On Sat, Jan 6, 2024 at 8:00 AM Willy Jensen <willy.h.jen...@outlook.com> wrote: > > . . > >Unquote: return strip(space(translate(arg(1)," ","'"))) > > > >Isn't that a verbose equivalent of: > > return strip( arg( 1 ), 'Both', '''' ) > Not exactly, the Unquote also removes spaces between the quote and the > text. It has happened. > > >Requote: if arg(1)='' then return '';else return "'"Unquote(arg(1))"'" > > > >If arg( 1 ) is a string of blanks, do you want to pass listds() > >an empty string? > > Yes, though one could return something like '*missing name*' I guess > and/or do a SAY with a message. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Wayne V. Bickerdike ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN