Worked like a charm Vern.  Thanks.  I didn't think of the length being an 
issue.  I was thinking of how I would do it in RPG.  Define a field but not 
worry about the trailing blanks.

Rick

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Vern Hamberg
Sent: Thursday, July 15, 2004 11:59 AM
To: Midrange Systems Technical Discussion
Subject: Re: Adding text to SQL index


Rick

The problem is the length parameter - x'000000009600000F' - it should be 
76, not 96. Be sure to count the double apostrophes as one character. I 
made that change in ineteractive SQL and it worked. The messages you are 
getting have to do with garbage in memory beyond the actual statement. 
That's why the CL command processor was not happy.

HTH
Vern

At 11:32 AM 7/15/2004, you wrote:
>Content-class: urn:content-classes:message
>Content-Type: multipart/related; type="multipart/alternative";
>         boundary="----_=_NextPart_001_01C46A89.47D0DA30"
>
>I am trying to find a way to add text to SQL indexes.
>
>Looking through the archives I found this line of code submitted in Oct. 
>2003 by Vern.
>CALL QCMDEXC ('CHGLF FILE(vern/myidx) text(''This is an index'')', 
>x'000000004700000F')
>
>I can't get it to fit on a single line so my statement looks like this:
>CALL QCMDEXC ('CHGLF FILE(SUDOC/SUDETLS00) text(''SU detail exceptions by 
>User,
>Date, Time'')', 
>x'000000009600000F');
>
>When I issue the RUNSQLSTM command it fails on the call.  I have tried 
>several variations to try and correct the error but without success.  I 
>only succeeded in getting different errors.  The statement above generates 
>the error 'String ')     O   ' contains a character that is not valid.'
>
>Can someone show me what I'm missing?
>
>Rick Chevalier
>  <<ole0.bmp>>
>Enterprise Solutions
>Ext. 57178
>
>
>--
>This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
>To post a message email: MIDRANGE-L@xxxxxxxxxxxx
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/midrange-l
>or email: MIDRANGE-L-request@xxxxxxxxxxxx
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.