rename with wildcard code

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

rename with wildcard code

Postby BT454 » Wed Sep 01, 2021 8:03 am

Good morning,
I'm running a job I coded sometime ago, that I run on a monthly basis. This month it is crashing because something seems to have changed with the rename function using wildcards.

I have set of series that starts with the letter "d". I'd like to rename each series so that they end with p16. The code that used to work was
rename d* d*p16 and would yield dxxxp16. However, now it yields dp16xxx.
I've attached the workfile in question. Is there a new syntax for the rename function, using the * as a wildcard?
Any help is appreciated, and thank you in advance for your help, as always.
Bob

Code: Select all

rename d* d*p16
Attachments
data_test.wf1
(129.75 KiB) Downloaded 113 times

EViews Matt
EViews Developer
Posts: 560
Joined: Thu Apr 25, 2013 7:48 pm

Re: rename with wildcard code

Postby EViews Matt » Wed Sep 01, 2021 8:40 am

Hello,

A recent patch unfortunately introduced a bug into wildcard handling. The next EViews patch will correct the issue.

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Re: rename with wildcard code

Postby BT454 » Wed Sep 01, 2021 9:38 am

Thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 26 guests