Adding a label in a -spreadsheet file

Moderators: cyao, michael_borland

Post Reply
Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Adding a label in a -spreadsheet file

Post by Max » 21 Jul 2010, 02:39

Hi Michael and all,
is it possible to add a label to a text file that I created with
sddsprintout -spreadsheet=csv -column=* file file.txt
I have tried defining the label as a parameter and adding -par=label without success.
I thank you for your excellent support to my queries.
Cheers, Max

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Adding a label in a -spreadsheet file

Post by michael_borland » 21 Jul 2010, 08:28

Max,

What happens when you add -par=label? It should insert an additional line of the form
label,"<value>"

What is it that you'd like to see happen?

--Michael

Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Re: Adding a label in a -spreadsheet file

Post by Max » 23 Jul 2010, 03:42

Hi Michael,
I would like to see the string in the text file:
I have a string "count" as a parameter in count.sdds defined by:
sddsxref run2.cor count.sdds -transfer=par,count
.
.
.
that I transfer to run2.hrm (successfully) with
sddsxref run2.hrm count.sdds -transfer=par,count
and then to a text file run2.hrm.txt:

sddsprintout -spreadsheet=csv -column=* run2.hrm run2.hrm.txt -par=count run2.hrm run2.hrm.txt

the above line gives me an error "too many filenames"

Thanks, Max

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Adding a label in a -spreadsheet file

Post by michael_borland » 23 Jul 2010, 08:13

Max,

The problem is the duplicated filenames. If you use

sddsprintout -spreadsheet=csv -column=* -par=count run2.hrm run2.hrm.txt

it should work.

--Michael

Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Re: Adding a label in a -spreadsheet file

Post by Max » 27 Jul 2010, 12:52

Thanks Michael. It works,
Max

Post Reply