pageunstack

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

pageunstack

Postby paues » Mon Jun 17, 2013 1:59 am

I just cannot seem to get my head around unstacking data. I have a text file (attached) that I have managed to beat in a alpha series containing the identifiers, which have been transformed into names with the code below. The result is saved in the attached workfile.

Code: Select all

'Load text file wfopen "G:\PRO\Map\Arb\Utfall\Ams\Data\Txt\KIS1_201305.TXT" fieldtype=undivided @freq u 'Get date alpha mydate=@mid(series01,1,4)+"M"+@mid(series01,5,2) %mydate=@elem(mydate,"1") delete mydate 'Get id alpha id=@trim(@mid(series01,7,15)) 'Get value series value=@val(@trim(@mid(series01,22))) 'Delete original data delete series01 'Construct valid names alpha name=@makevalidname(id) delete id
My next step would be something involving pageunstack and possibly pagestruct which would result in a dated monthyl workfile (start=2013M05,end=2013M05). I cannot seem to get it to work though. Help would be greatly appreciated.
Attachments
KIS1_201305.TXT
Original text file
(28.75 KiB) Downloaded 561 times
kis1_201305.wf1
After executed code
(48.62 KiB) Downloaded 411 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: pageunstack

Postby EViews Gareth » Mon Jun 17, 2013 7:59 am

Code: Select all

pageunstack namn datum pagestruct @date(datum)
?

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: pageunstack

Postby paues » Tue Jun 18, 2013 7:54 am

Worked great. Thanks!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests