2 title 'Test non-binary data input formats'.
4 data list /a 1-8(a) /* 1
6 comma 17-24(comma) /* 3
7 dollar 25-32(dollar) /* 4
9 pibhex 41-48(pibhex) /* 6
12 formats comma(comma8.2) dollar(dollar8.2).
13 print /a ahex comma dollar f pibhex n e.
15 /* This set of data should produce errors:
17 /* - First line should be error-free.
18 /* - Second line should have errors for F, PIBHEX, and N fields.
19 /* - Third line should have errors for COMMA, DOLLAR, F, and N fields.
20 /* - Fourth line should have errors for F and N fields.
24 abcdefgh414243441,2,3.4,$1,2,3.4123456.6100023451234567812345678
25 4a4b4c4d1,234.56$1234.56 abcd ghjk -12345671234+56
26 4C4D4E4F1234+56 $1234+56 0 1 abcd 12345e671234e+56
27 555657581234e+561234e+56 1.2 3 000000001234e67 1234-5
30 data list /date 1-32(date) /* 1
31 time 33-64(time,4). /* 2
34 /* This set of data should produce errors:
38 11-july-1982 12:10:55.59
42 data list /datetime 1-32(datetime,4) /* 1
43 adate 33-64(adate). /* 2
44 print /datetime adate.
47 7-7-8 12:10:55.5 10/15/1582
48 11-jul-1982 9:00 10/01/78
51 data list /jdate 1-32(jdate) /* 1
52 dtime 33-64(dtime). /* 2
56 1582365 10 15:30:00.32
60 data list /wkday 1-32(wkday) /* 1
61 month 33-64(month). /* 2
71 data list /moyr 1-32(moyr) /* 1
80 data list /wkyr 1-32(wkyr) /* 1
89 data list /dot 1-32(dot) /* 1
90 edate 33-64(edate). /* 2
95 123.456.789,348 1.10.1978
99 formats dot (comma32.3).
108 data list /sdate 1-32(sdate). /* 1
115 data list /date 1-32.
116 compute date = date * 86400.
117 print /date (date32).
131 data list /date 1-32(date).
132 compute jdate = date / 86400.
147 set cca 'NPX,PFX,SFX,NSX'.
148 set ccb 'NPX.PFX.SFX.NSX'.
151 set cce 'asld,adl,lfj,lfs'.
153 data list /cc 1-32(f).
154 print /'cca: ' cc (cca32.2).
155 print /'ccb: ' cc (ccb32.2).
156 print /'ccc: ' cc (ccc32.2).
157 print /'ccd: ' cc (ccd32.2).
158 print /'cce: ' cc (cce32.2).
166 print /'cca: ' cc (cca16.2).
167 print /'ccb: ' cc (ccb16.2).
168 print /'ccc: ' cc (ccc16.2).
169 print /'ccd: ' cc (ccd16.2).
170 print /'cce: ' cc (cce16.2).
173 print /'cca: ' cc (cca8.2).
174 print /'ccb: ' cc (ccb8.2).
175 print /'ccc: ' cc (ccc8.2).
176 print /'ccd: ' cc (ccd8.2).
177 print /'cce: ' cc (cce8.2).