I'm trying to identify if the first character of a variable is a number or string.
My variable is %myvar and I am running a loop which is picking up cusips (numbers) and tickers (strings) from a group.
I am using @left to identify what the first character.
However, I need something to tell me if it is a number or a letter.
Does EViews have such a command?
Thanks!
KC
First Character Identification... Number or String???
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: First Character Identification... Number or String???
Code: Select all
@isna(@val(@left(%myvar,1)))
Re: First Character Identification... Number or String???
Worked great! Thank you!!
KC
KC
Who is online
Users browsing this forum: No registered users and 2 guests
