RE: [U2] Calling a subroutine on an MV field from an I-Descriptor

2005-12-13 Thread Bill_H
zar > Sent: Tuesday, December 13, 2005 10:45 AM > To: u2-users@listserver.u2ug.org > Subject: RE: [U2] Calling a subroutine on an MV field from an > I-Descriptor > > Bill, > > If all you are trying to do is return a multi-valued "1" or > "0" string for a

RE: [U2] Calling a subroutine on an MV field from an I-Descriptor

2005-12-13 Thread Rex Gozar
Bill, If all you are trying to do is return a multi-valued "1" or "0" string for a multi-valued list of id's, you can use this in field 2 of your I-descriptor: 0002: CATS(REUSE(@ID:"*"), @RECORD<35>) ; TRANS("ARTLEDGER", @1, 0, "X") ; NES(@2, REUSE("")) Note that @RECORD<35> can be replaced with

RE: [U2] Calling a subroutine on an MV field from an I-Descriptor

2005-12-13 Thread Bill_H
thought I would want to manipulate an entire MV attribute at once. :-) Thanks again. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ray Wurlod > Sent: Monday, December 12, 2005 8:54 PM > To: u2-users@listserver.u2ug.org > Subje

RE: [U2] Calling a subroutine on an MV field from an I-Descriptor

2005-12-13 Thread Stevenson, Charles
> From: Stevenson, Charles > Try using OCONVS (with an S) instead of OCONV. After seeing Ray W's response, I think I misread your purpose. What I said was true, but irrelevant. The formatting got screwed up on the email. Be gracious & let me blame it on that. I'll second Ray's answer instead.

RE: [U2] Calling a subroutine on an MV field from an I-Descriptor

2005-12-13 Thread Stevenson, Charles
Try using OCONVS (with an S) instead of OCONV. The problem has nothing to do with I-descriptors. OCONV treats the 1st argument as a string. OCONVS will process each delimited substring individually. Notice the "FD" (hex value mark) in the middle of the 1st output line below, but the "}", which is

Re: [U2] Calling a subroutine on an MV field from an I-Descriptor

2005-12-12 Thread Ray Wurlod
The subroutine needs to do a READ for each value in the multi-valued argument passValue. You could also do a TRANS() function, which has this loop built in, within the routine. Note that individual elements of a dynamic array (multi-valued field) can be null, so your null test must be inside t