[Download-List] Problem mixing single value and multi value fields

John Arnold John.Arnold at sweetwater.tstc.edu
Thu May 13 14:12:01 EDT 2010


The BY.EXP should only be used in the DOWNLOAD statement and not in your
original SELECT that you had shown initially.
 
Hope that helps!
 
John Arnold
Office of Research, Planning & Analysis
SACS Accreditation Liaison
Texas State Technical College - West Texas
john.arnold at tstc.edu 
Office - 325.235.7408
Mobile- 325-338.6906


>>> On 5/13/2010 at 1:02 PM, in message
<8B65C5E2BF77A646B389712DB2611C191DE64BE496 at mail.campus.collegeofidaho.edu>,
"Johnson, Keith M" <KMJohnson at collegeofidaho.edu> wrote:

It looks like you are doing this ok to me…
SELECT STUDENTS WITH STU.TERMS SAMPLE 1
 
1 records selected to list 0.
 
>.X2
DOWNLOAD STUDENTS BY.EXP STU.TERMS STU.TERMS
DOWNLOAD version 6.01
Using input file STUDENTS
Output to screen
 
"Jones, Kristen Nicole","08/FA"
"Jones, Kristen Nicole","09/WI"
"Jones, Kristen Nicole","09W/SP"
"Jones, Kristen Nicole","09/SP"
"Jones, Kristen Nicole","09/FA"
"Jones, Kristen Nicole","10/WI"
"Jones, Kristen Nicole","10W/SP"
"Jones, Kristen Nicole","10/SP"
"Jones, Kristen Nicole","10/FA"
 
1 record processed.
 
Can you run this against other files correctly with similar multivalve
fields?
-KJ
 

Keith Johnson
Information Technology
#5209 (direct)
#5543 Fax

 

From:download-list-bounces at cedarville.edu
[mailto:download-list-bounces at cedarville.edu] On Behalf Of Storey,
Laurence
Sent: Thursday, May 13, 2010 10:50 AM
To: download-list at cedarville.edu 
Subject: [Download-List] Problem mixing single value and multi value
fields

 
Hello,
 
I'm trying to flatten some data for export to a spreadsheet.
Using standard sort/list commands, the data looks like this:
 
LS.INV.NUM..... UATB.N.CONTRACT
 
         393139 001-5087442-001
                001-5087442-002
                001-5087442-003
 
I want it to look like this:
 
         393139 001-5087442-001
         393139 001-5087442-002
         393139 001-5087442-003
 
I tried this syntax:
 
SELECT LS.INV.NUM BY.EXP UATB.N.CONTRACT.KEY WITH @ID = "393139"
 
3 records selected to list 0.
 
DOWNLOAD LS.INV.NUM UATB. at ID BY.EXP UATB.N.CONTRACT.KEY
UATB.N.CONTRACT.KEY
 
I get this:
 
DOWNLOAD version 7.30
Using input file LS.INV.NUM
Output to screen
 
393139,"001-5087442-001"
393139,"001-5087442-001"
393139,"001-5087442-001"
 
Then I get this:
 
DOWNLOAD Error Listing                                               
Page     1
 
                                                               09:19:03
05-13-10
 
 
Invalid syntax "UATB.N.CONTRACT.KEY UATB.N.CONTRACT.KEY": should be
"UATB.N.CONTRACT.KEY multi-valuedField"
 
 
 
So, I get the repeated single value (which is good) but then I get the
first value of the mult-value field repeated (and I get the error
message). Not sure what I'm doing wrong, but if anyone can give me
different syntax that might work, I would appreciate it.
 
BTW I'm using Unidata 6.0 (on UNIX).
 
 
Thanks,
-Larry
 
laurence.storey at carefusion.com 
  
 
 
_________________________________________________

This message is for the designated recipient only and may contain
privileged, proprietary
or otherwise private information. If you have received it in error,
please notify the sender
immediately and delete the original. Any other use of the email by you
is prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands
- Norsk - Portuguese
Svenska: www.cardinalhealth.com/legal/email
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.cedarville.edu/pipermail/download-list/attachments/20100513/59cc3c5e/attachment.html>


More information about the download-list mailing list