File: compute.stat

package info (click to toggle)
pspp 0.3.0-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,288 kB
  • ctags: 4,679
  • sloc: ansic: 57,209; sh: 2,874; makefile: 405; sed: 93; perl: 18
file content (22 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
title 'Test COMPUTE expressions'.

data list /w 1-3(a).
begin data.
123
456
919
572
end data.
*string y z(a6).
*compute y=ltrim(lpad(w,6,'*'),'*').
*compute z=rtrim(rpad(w,6,'*'),'*').
string z(a6).
compute x=number(w).
compute y=number(w,f8).
compute z=lpad(rpad(substr(string(x,f6),4,1),3,'@'),6,'*').
compute y=y+1e-10.
if(x<=456) y=500.
select if x<=456.
compute #caseseq=#caseseq+1.
list.
list.