XANSYS Message: 27 [Go back to message list]
[bookmark on del.icio.us]
No rating yet
Rate item:

Subject: Re: *vwrite command, integer format character that works on a HP and SUN machine
Author: Dave Lindeman
Date: 1998-12-15 15:20:00

The trick I use is to open a scratch file, use an Fx.0 format for integers, and
follow all integers with a '%' character. For example,

*CFOPEN,scratch,dat
*VWRITE,I
(F6.0,'%')
*CFCLOS

Next, you can use a text editor to eliminate all '.%' combinations, or, under
UNIX
use:

/SYS,sed 's/.%//g' scratch.dat > filename.dat

Alternatively, you can use the CHRVAL function in APDL to first store the
integers as text strings, then use an A* output format.

Regards,

Dave

Dave Lindeman 3M Center 235-1F-36 Tel: 651-733-6383
CAE Specialist St. Paul, MN 55144 Fax: 651-736-7615


Posts possibly associated with message #27AuthorDateScore
24*vwrite command, integer format character that works on a HP and SUN machineJoe Rasche1998/12/15 
26Re: *vwrite command, integer format character that works on a HP and SUN machineJohn Swanson1998/12/15 
27Re: *vwrite command, integer format character that works on a HP and SUN machineDave Lindeman1998/12/15 
34Re: *vwrite command, integer format character that works on a HP and SUN machineJames Kosloski1998/12/15