XANSYS Message: 42275 [Go back to message list]
No rating yet
Rate item:

Subject: Re: calling a file through current directory
Author: Simon English
Date: 2002-09-29 04:20:00

Trying using forced substitution by enclosing the parameter name with
percent signs (%):
*dim,A,,4
*do,i,1,4
A(i)=i
*enddo

*do,k,1,4
/copy,input_%A(k)%,inp,,output_%A(k)%,out
*enddo

Regards,
Simon English
Principal Engineer
Inbis Ltd (Sunderland)
Tel 0191 516 7956
Fax 0191 516 7979

> -----Original Message-----
> From: somesh [SMTP:someshjg@i...]
> Sent: 29-Sep-2002 06:55
> To: xansys@yahoogroups.com
> Subject: [xansys] calling a file through current directory

> Dear Users

> I am doing a macro which calls some files through current directory
> A simple example

> *dim,A,,4
> *do,i,1,4
> A(i)=i
> *enddo

> *do,k,1,4
> /copy,input_A(k),inp,,output_A(k),out
> *enddo

> I am getting the error as dimension set is not available for input_A(k)
> I have tried by making A vector as character vector. But the same error

> Can anybody help me in this regard

> Regards

> Somesh
> IEL India

Posts possibly associated with message #42275AuthorDateScore
42274calling a file through current directorySomesh J. Ghunakikar2002/09/29 
42275Re: calling a file through current directorySimon English2002/09/29