I’m using save translate to export a text (csv) file and I’d like to control formats in the output file so I specified formats for the to-be output vars. So …, per the save translate documentation (p 1698, just above ‘Exceloptions subcommand’)
I should get what I specified; however, I didn’t. I got 12 or 16 decimal places rather than my desired F7.5. Could there be a mismatch between command functioning and command documentation?
Gene Maguin |
According to the doc, you should specify /TEXTOPTIONS FORMAT=VARIABLE to use the variable print formats. You can check those with DISPLAY DICT. Is that what you did? On Wed, Oct 4, 2017 at 7:43 AM, Maguin, Eugene <[hidden email]> wrote:
|
This seems to work correctly... data list list /v1 v2 v3. begin data 1.234567 1.234567 1.234567 end data. formats v1 (f7.3) v2 (f7.4) v3 (f7.5). save translate /outfile='c:\temp\formats.csv' /type=csv /textoptions format=variable. On Wed, Oct 4, 2017 at 8:51 AM, Jon Peck <[hidden email]> wrote:
|
In reply to this post by Jon Peck
No, I did not include Textoptions format=variable.
I did read the that section and I didn’t understand what was being said. The example given focused on the treatment of a dollar format and effect of the two options
was clear. So, my misunderstanding. Thank you for correcting me. Gene Maguin From: Jon Peck [mailto:[hidden email]]
According to the doc, you should specify /TEXTOPTIONS FORMAT=VARIABLE to use the variable print formats. You can check those with DISPLAY DICT. Is that what you did? On Wed, Oct 4, 2017 at 7:43 AM, Maguin, Eugene <[hidden email]> wrote:
-- Jon K Peck |
Free forum by Nabble | Edit this page |