@left command
Posted: Fri Oct 11, 2013 7:09 pm
Hello,
I would like to know what is the mistake i´m making with the use of this command since every time i use it, EViews tells me "numeric argument passed to string @left function".
I´m working in this way:
series job
job = @left (ocup, 3)
My sample is: OCUP
1 10313
2 10313
3
4 99997
5 20311
6
7
8 80311
9
10
11
12
13 20312
14 30314
15 5002
16 40312
17 82314
18
19 34323
20 80323
21
22
23 92312
24
25
26
27 30314
28
29
30
31
32 55314
33 80313
34
35
36
37 81332
38
39
40
41
42
43 50111
44
45
46 40313
47 53314
48
49
50
51 34323
52 53314
53 53314
54 53314
55
56
57
58
59
60
61
62 56313
63
64
65
66 6001
67 41312
68
69
70
71
72 82113
73 55314
74
75 10313
76 30313
77 32314
78
79
80 31313
81
82 99999
83
84
85
86 57112
87
88
89 40311
90 30313
91
92
93
94
95
96
97 53203
98 53314
99 72111
100 7001
Thank you.
I would like to know what is the mistake i´m making with the use of this command since every time i use it, EViews tells me "numeric argument passed to string @left function".
I´m working in this way:
series job
job = @left (ocup, 3)
My sample is: OCUP
1 10313
2 10313
3
4 99997
5 20311
6
7
8 80311
9
10
11
12
13 20312
14 30314
15 5002
16 40312
17 82314
18
19 34323
20 80323
21
22
23 92312
24
25
26
27 30314
28
29
30
31
32 55314
33 80313
34
35
36
37 81332
38
39
40
41
42
43 50111
44
45
46 40313
47 53314
48
49
50
51 34323
52 53314
53 53314
54 53314
55
56
57
58
59
60
61
62 56313
63
64
65
66 6001
67 41312
68
69
70
71
72 82113
73 55314
74
75 10313
76 30313
77 32314
78
79
80 31313
81
82 99999
83
84
85
86 57112
87
88
89 40311
90 30313
91
92
93
94
95
96
97 53203
98 53314
99 72111
100 7001
Thank you.