SYSTEM(11) returns number of items in the active select list. I think we should leave the @SYSTEM.RETURN.CODE as the number of records selected.
Thanks, David A. Green DAG Consulting -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Moderator Sent: Friday, June 22, 2007 3:15 PM To: [email protected]; [EMAIL PROTECTED] Subject: [U2] [UD] BSELECT @SYSTEM.RETURN.CODE anomaly REPOSTED FOR NON-MEMBER ADDRESS: <[EMAIL PROTECTED]> I'd looking for feedback on @SYSTEM.RETURN.CODE as returned from BSELECT of a multivalue attribute. Run the following basic code in the UniData demo account: CMD = 'BSELECT CUSTOMER TAPES_RENTED' CRT CMD EXECUTE CMD CRT '@SYSTEM.RETURN.CODE = ':@SYSTEM.RETURN.CODE CLEARSELECT When I run it, I get: BSELECT CUSTOMER TAPES_RENTED 36 records selected to list 0. @SYSTEM.RETURN.CODE = 29 Note that 29 is the number of records in CUSTOMER; 36 is then number of items in the returned active select list. The questions: Is there any way a program could depend on @SYSTEM.RETURN.CODE being incorrect some of the time? Would anyone want @SYSTEM.RETURN.CODE to be the number records polled and not number of items in the returned list, even if the number of items returned is 0? IBM case #423086*USA UniData 6.1.18 HP-UX 11.11 ECLTYPE P UDT.OPTIONS 59 ON Dean Armbruster System Analyst Wolseley North American Division * 12500 Jefferson Avenue * Newport News * VA * 23602-4314 T: +1(757) 989-2839 * F: +1(757)989-2801 * E: [EMAIL PROTECTED] www.wolseley.com Wolseley plc registered office Parkview 1220 Arlington Business Park Theale Nr Reading RG7 4GA United Kingdom Registration No. 29846 England BOUNCED NOTICE: Your recent post to our lists bounced because either you are not a member or because you are not signed up using the e-mail address which you used to post. To subscribe or resubscribe please visit http://listserver.u2ug.org/. - Charles Barouch, Moderator U2-Users, U2-Community, SBSolutions, RBSolutions ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
