[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rocks::dec_edi

Title:DEC/EDI
Notice:DEC/EDI V2.1 - see note 2002
Moderator:METSYS::BABER
Created:Wed Jun 06 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3150
Total number of notes:13466

3006.0. "User_reference and cockpit ?'s" by CSC32::B_ALTMIRE () Tue Feb 11 1997 23:46

Hi,
	A couple of questions on DECEDI 3.1 and cockpit.

1. When in cockpit and viewing documents and specifying the user_reference
qualifier it doesn't seem to work if the user_reference of the document
contains a space. That is it does not find documents that have matching
user_reference fields when they contain a space.

2. In trying to test this I was using the trade post command and posting
an inhouse file, I tried specifying -tracking_reference="02DA-EH-69884 O"
and this gives me a "Bad parameter" error, if the space in the user_reference
is omitted then the command works ok, ie;

gorgon.cxo.dec.com> trade post pacific-paper-out /usr/users/altmire/test.ihf \
> -partner_name=PACIFIC-PAPER \
> -object_name=850 \
> -type=ihf \
> -tracking_reference="02DA-EH-69884 O"
Bad parameter
gorgon.cxo.dec.com> trade post pacific-paper-out /usr/users/altmire/test.ihf \
> -partner_name=PACIFIC-PAPER \
> -object_name=850 \
> -type=ihf \
> -tracking_reference="02DA-EH-69884O"
Returned internal reference : 0000000021

Are these bugs or operator errors? 

Thanks,
Bill Altmire
T.RTitleUserPersonal
Name
DateLines
3006.1Works for meMETSYS::POADhttp://www.digital.com/info/ediWed Feb 12 1997 16:205
    Point 1). I've just tries this in Cockpit and it appears to be working
    ok. have you got any extra space chars on the end of the ref in the doc
    that it isn't matching against?
    
    	Chris
3006.2That darn shellSYSTEM::HELLIARhttp://samedi.reo.dec.com/Wed Feb 12 1997 16:2125
    Bill,
    
    On the second half of the question...
    
    If you do 
    
    #trade post ... -user_reference="BUY GRAHAM A BEER" 
    
    then your shell will interpret the command before passing it to trade,
    and will therefore 'handle' its special characters such as quotes, 
    backslashes, wildcards (*) etc.
    
    The solution is to either enter trade then issue the post, or to
    release the shells special characters from the shell meaning
    
    i.e.
    
    #trade post ... -user_reference=\"BUY GRAHAM A BEER\" 
    
    
    regards,
    
    Graham
    
    
3006.3CSC32::B_ALTMIREWed Feb 12 1997 17:1346
I tried all the following combinations but still cannot get the trade command
to accept a user_reference string containg a space.

gorgon.cxo.dec.com> trade
DEC/EDI V3.1
Copyright Digital Equipment Corporation 1990,1996. All Rights Reserved.

CLIENTEDI> post pacific-paper-out /usr/users/altmire/test.ihf \
-partner_name=PACIFIC-PAPER \
-object_name=850 \
-type=ihf \
-tracking_reference="02DA-EH-69884 O"
Bad parameter

CLIENTEDI> post pacific-paper-out /usr/users/altmire/test.ihf \
-partner_name=PACIFIC-PAPER \
-object_name=850 \
-type=ihf \
-tracking_reference="02DA-EH-69884O"
Bad parameter
Command syntax incorrect

CLIENTEDI> CLIENTEDI> post pacific-paper-out /usr/users/altmire/test.ihf \
-partner_name=PACIFIC-PAPER \
-object_name=850 \
-type=ihf \
-tracking_reference=02DA-EH-69884 O
Bad parameter

CLIENTEDI> post pacific-paper-out /usr/users/altmire/test.ihf \
-partner_name=PACIFIC-PAPER \
-object_name=850 \
-type=ihf \
-tracking_reference=02DA-EH-69884
Returned internal reference : 0000000025

CLIENTEDI> exit
gorgon.cxo.dec.com> trade  post pacific-paper-out /usr/users/altmire/test.ihf \
> -partner_name=PACIFIC-PAPER \
> -object_name=850 \
> -type=ihf \
> -tracking_reference=\"02DA-EH-69884 O\"
Bad parameter
gorgon.cxo.dec.com>

Bill
3006.4The joys of being ahead of the gameSYSTEM::HELLIARhttp://samedi.reo.dec.com/Thu Feb 13 1997 18:326
    Bill,
    
    It appears to work on my 3.2 system so the bug must have been fixed
    recently (either 3.1A or T3.2)
    
    Graham