1.3 Executing Previous Scripts

When -q option is used, automatic sorting on columns defined at k= parameter is disabled. As shown in Table 1.1, when s= parameter is not defined for commands that takes in s= parameter, the commands will operate as in Ver. 1.0. For scripts using Ver. 2.0 commands where k= parameter and -q option is specified, while s= parameter is not defined, the results is equivalent to scripts using Ver. 1.0 commands (For mpadding command, even though type= parameter is removed, the specification is required at f= parameter ).

Example on Script Modifications

Script Before Modification

In Ver. 2.0, maccum command will return an error if s= parameter is not specified.

msortf i=customer.csv f=custID,date |
maccum k=custID f=amount o=accum.csv
#ERROR# parameter s= is mandatory without -q (kgaccum); kgaccum f=amount i=test.csv k=custID

Modification

s= parameter is required for maccum command, when -q option is used, it is equivalent to the execution method in Ver. 1.0.

msortf i=customer.csv f=custID,date |
maccum -q k=custID f=amount o=accum.csv