COBOL Manual for TNS and TNS/R Programs
Contents
HP COBOL Manual for TNS and TNS/R Programs—522555-006
xxxviii
Examples (continued)
Examples (continued)
Example 9-30. Delimited-Scope IF ELSE Statement 9-89
Example 9-31. IF ELSE Statement Nested Within PERFORM Statement 9-89
Example 9-32. Delimited-Scope IF ELSE Statement Nested Within PERFORM
Statement 9-89
Example 9-33. Nested Conditional IF Statements 9-90
Example 9-34. Delimited-Scope IF Statement 9-90
Example 9-35. INITIALIZE Statements 9-92
Example 9-36. INITIALIZE Statement 9-93
Example 9-37. INSPECT TALLYING With One Compare-String 9-100
Example 9-38. INSPECT TALLYING With Multiple Compare-Strings 9-100
Example 9-39. INSPECT Statement Converting Leading Spaces to Zeros 9-106
Example 9-40. One INSPECT Statement, Several Replacements 9-107
Example 9-41. INSPECT CONVERTING Statement 9-114
Example 9-42. LOCKFILE Statement With TIME LIMIT Phrase 9-118
Example 9-43. MERGE Statement 9-127
Example 9-44. MOVE TO Statements 9-130
Example 9-45. MULTIPLY BY Statement 9-135
Example 9-46. MULTIPLY BY Statement With ROUNDED Phrase 9-135
Example 9-47. MULTIPLY GIVING Statement 9-138
Example 9-48. OPEN Statements 9-156
Example 9-49. Unconditional PERFORM Statement With One Paragraph 9-161
Example 9-50. Unconditional PERFORM Statement With Several
Paragraphs 9-161
Example 9-51. In-Line PERFORM Statement With Delimited-Scope
Statements 9-162
Example 9-52. PERFORM TIMES Statement 9-163
Example 9-53.
PERFORM TIMES Statement 9-163
Example 9-54.
PERFORM UNTIL Statement 9-166
Example 9-55. PERFORM VARYING Statement Used to Display a List 9-176
Example 9-56. PERFORM VARYING Statement Used to Build a Table 9-177
Example 9-57. Reading a Sequential File 9-190
Example 9-58. Reading a Dynamic Indexed File 9-191
Example 9-59. Reading $RECEIVE With Timed Input-Output 9-192
Example 9-60. Reading a Random Indexed File 9-200
Example 9-61. REWRITE Statement for Indexed File 9-207
Example 9-62. SEARCH VARYING Statement 9-214
Example 9-63. SEARCH ALL Statement 9-219
Example 9-64. Typical Use of Input and Output Procedures 9-236