If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Formatting problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-03, 09:50
FatsGordon FatsGordon is offline
Registered User
 
Join Date: Dec 2003
Location: Buenos Aires - Argentina
Posts: 4
Formatting problem

Hi all,

Is there a way to include an escape character (especifically the ASCII(10)) into an
stored procedure variable? I've tried ASCII(10) (in 4GL works Ok) but the parser
rejects it.

It should go this way (just as an example):

LET line_feed = ASCII(10); -- This doesn't work
..........
LET my_variable = some_things || line_feed || more_stuff || line_feed ||
just_more_stuff || line_feed; -- my_variable is a CHAR one

I need that in order to formatting the output text, which is included into a single
CHAR variable. When completed the routine, I inserted that variable into a temp table
(just one field), and then performed an UNLOAD to a text file. The ASCII(10) goes
multiple times inside the output file.

I'm using Informix 7.31.

Thank you!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On