Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using Parameters in File Names

7 views
Skip to first unread message

Bert1604

unread,
Jan 10, 2012, 7:42:45 AM1/10/12
to
Hi,


I am using PASW Modeler 13 and I was wondering whether it is possible
to use a stream parameter in the file names when exporting data to
a .csv or .txt.

Every month I run a program in PASW Modeler and export the data to
a .txt file which contains YYYYMM in its name. It would be very useful
to parameterize the name as such that I would have to change the
stream parameter in one place and all the rest is done automatically.

Thanks!

fred....@lsc.gov.uk

unread,
Jan 16, 2012, 10:25:10 AM1/16/12
to
You could place the command inside a macro, which would allow you to
do what you want, for example

Define !Macro1(FName=!tokens(1)).
sav out !Quote(!Concat(C:\Temp\file_', !FName, '.sav')).
!Enddefine.

Set mprints on.

!Macro1 FName=201201.
0 new messages