Download A4 - Rush Flat Consulting

Transcript
Accounts, Files and Editors
Page 56
.L
20
19
18
17
16
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
MODIFY DICT XRATES
SORT XRATES
MODIFY DICT XRATES
SORT XRATES
SORT XRATES DATE USD GBP AUD JPY EUR
FTTCL
FTSERVER 1
CLEAR.FILE DATA IRATES
sort dict irates
MODIFY DICT IRATES
SORT IRATES
FTTCL
FTSERVER 1
SORT IRATES DATE OVERNIGHT DAYS90 YRS10
CT IRATES 15346
sort xrates
CT XRATES 15346
sort irates
SORT IRATES DATE OVERNIGHT DAYS90 YRS10
SORT XRATES DATE USD GBP AUD JPY EUR
The most recent commands are at the bottom of the list nearest the current cursor
position. The default number of commands is 20, but this can be changed by specifying a
number in the .L command:
.L5
05
04
03
02
01
sort xrates
CT XRATES 15346
sort irates
SORT IRATES DATE OVERNIGHT DAYS90 YRS10
SORT XRATES DATE USD GBP AUD JPY EUR
To execute a command that is already on the command stack, use .Xn where n is the
number of the command. To repeat the sort on the dictionary of the IRATES file (command
number 2), we would type .X2
.x2
SORT IRATES DATE OVERNIGHT DAYS90 YRS10
IRATES....
Date.......
Overnight Cash
15346
05 JAN 2010
15347
06 JAN 2010
15348
07 JAN 2010
15349
08 JAN 2010
Rate
2.52
2.37
2.38
2.25
90 Day Bank Bill
2.80
2.79
2.78
2.78
10 Yr Govt Bonds
6.13
6.07
6.06
6.06
When we execute a command like this, the specified command is executed as if it were
just entered at the keyboard. This duplicates the existing command, and pushes all
previous commands down the stack. In this case, we now have the command:
SORT IRATES DATE OVERNIGHT DAYS90 YRS10
at both position 1 and position 3 on the stack.
The .C command changes the text in a command. While we could change the text in any
command on the stack, it is usually most convenient to operate on the first command. In
this case, we may need to retrieve ( .R) an earlier command from the stack.
.R2
02 SORT XRATES DATE USD GBP AUD JPY EUR
.C/AUD/CNY
01 SORT XRATES DATE USD GBP CNY JPY EUR
This sequence has retrieved the 2nd command from the stack, and then changed ‘AUD’ to
‘CNY’ in the list of currencies to display. We could then execute this new command
simply by typing .X
.X
SORT XRATES DATE USD GBP CNY JPY EUR
XRATES....
Date........
US Dollar
15346
05 JAN 2010
0.7344
15347
06 JAN 2010
0.7343
15348
07 JAN 2010
0.7378
15349
08 JAN 2010
0.7325
Getting Started in OpenQM - Part 1
UK Pound
0.4564
0.4591
0.4606
0.4597
Chinese Yuan
5.0145
5.0129
5.0376
5.0014
Jap Yen
67.98
67.39
68.11
68.50
Euro...
0.5096
0.5113
0.5119
0.5119
© Rush Flat Consulting