[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Write command



Use the ascii code (or ebcdic if you are on a mainframe) to string the
quote into place:

   encode <034> into $quote
   let $writestring = $quote || $firstfield || $quote || ...


On Mon, 21 Jan 2002 16:29:41 +1100, you wrote:

>Hi all
>
>
>
>I'm trying to write data to a text file, however I need the output to be in
>the following format. I can get the delimiter to change but I can get the
>quotes around the data. Any help, especially some basic code appreciated.
>
>
>
>"00000346","LAMB;LOIN
>MEDALLION,GOURMET,90GM/EA",0.09,2.25,"KG","MEAT","CROWN","2000-03-09"
>
>"00000393","CAKE;SLICE,RICH FRUIT
>100GM/EA",0.1,0.66,"KG","BAKRY","CROWN","2000-03-17"
>