![](https://csdnimg.cn/release/download_crawler_static/8442091/bg10.jpg)
6.4.30 OPEN Statement (Sequential File, Relative File, Indexed File).............................................................................................
315
6.4.31 OPEN Statement (Presentation File)......................................................................................................................................319
6.4.32 OPEN Statement (Report Writer)...........................................................................................................................................320
6.4.33 PERFORM Statement (Nucleus)............................................................................................................................................320
6.4.34 READ Statement (Sequential File, Relative File, Indexed File)............................................................................................329
6.4.35 READ Statement (Presentation File)......................................................................................................................................336
6.4.36 RELEASE Statement (Sort-merge)........................................................................................................................................338
6.4.37 RETURN Statement (Sort-merge)..........................................................................................................................................338
6.4.38 REWRITE Statement (Sequential File, Relative File, Indexed File).....................................................................................339
6.4.39 SEARCH Statement (Nucleus)...............................................................................................................................................342
6.4.40 SET Statement (Nucleus)........................................................................................................................................................347
6.4.41 SORT Statement (Sort-merge)................................................................................................................................................349
6.4.42 START Statement (Relative File)...........................................................................................................................................353
6.4.43 START Statement (Indexed File)...........................................................................................................................................355
6.4.44 STOP Statement (Nucleus).....................................................................................................................................................359
6.4.45 STRING Statement (Nucleus)................................................................................................................................................360
6.4.46 SUBTRACT Statement (Nucleus)..........................................................................................................................................366
6.4.47 SUPPRESS Statement (Report Writer)..................................................................................................................................367
6.4.48 TERMINATE Statement (Report Writer)..............................................................................................................................368
6.4.49 UNLOCK Statement (Sequential File, Relative File, Indexed File)......................................................................................369
6.4.50 UNSTRING Statement (Nucleus)..........................................................................................................................................369
6.4.51 USE Statement (Sequential, Relative, Indexed, Presentation File, and Report Writer Module)............................................378
6.4.52 USE BEFORE REPORTING Statement (Report Writer)......................................................................................................380
6.4.53 USE FOR DEAD-LOCK Statement.......................................................................................................................................381
6.4.54 WRITE Statement (Sequential File).......................................................................................................................................382
6.4.55 WRITE Statement (Relative and Indexed Files)....................................................................................................................387
6.4.56 WRITE Statement (Presentation File)....................................................................................................................................390
6.5 General Rules for Functions............................................................................................................................................................391
6.5.1 Function Call Format................................................................................................................................................................391
6.5.2 Types of Arguments..................................................................................................................................................................391
6.5.3 Rules Applied for Specifying a Table as an Argument............................................................................................................391
6.5.4 Function Types.........................................................................................................................................................................392
6.6 Functions..........................................................................................................................................................................................393
6.6.1 ACOS Function.........................................................................................................................................................................393
6.6.2 ADDR Function........................................................................................................................................................................393
6.6.3 ANNUITY Function.................................................................................................................................................................394
6.6.4 ASIN Function..........................................................................................................................................................................394
6.6.5 ATAN Function........................................................................................................................................................................395
6.6.6 CAST-ALPHANUMERIC Function........................................................................................................................................395
6.6.7 CHAR Function........................................................................................................................................................................396
6.6.8 COS Function...........................................................................................................................................................................396
6.6.9 CURRENT-DATE Function.....................................................................................................................................................397
6.6.10 DATE-OF-INTEGER Function..............................................................................................................................................397
6.6.11 DAY-OF-INTEGER Function................................................................................................................................................398
6.6.12 DISPLAY-OF Function..........................................................................................................................................................398
6.6.13 FACTORIAL Function...........................................................................................................................................................399
6.6.14 INTEGER Function................................................................................................................................................................399
6.6.15 INTEGER-OF-DATE Function..............................................................................................................................................400
6.6.16 INTEGER-OF-DAY Function................................................................................................................................................400
6.6.17 INTEGER-PART Function.....................................................................................................................................................401
6.6.18 LENG Function.......................................................................................................................................................................401
6.6.19 LENGTH Function.................................................................................................................................................................402
6.6.20 LOG Function.........................................................................................................................................................................403
6.6.21 LOG10 Function.....................................................................................................................................................................403
6.6.22 LOWER-CASE Function.......................................................................................................................................................404
6.6.23 MAX Function........................................................................................................................................................................404
6.6.24 MEAN Function.....................................................................................................................................................................405
- xv -