How To move a value to an array using move verb?
Answer Posted / jagan
using PERFORM statements we can move a value to an array
using the MOVE verb.
Below is an example of In-Line Perform where we are moving
a value to an array A
01 Array
05 A PIC X(10) occurs 10 times.
PERFORM VARYING i from 1 by 1 until i > 10
MOVE 1 TO A[I]
END-PERFORM
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How to remove 2 duplicate records and copy only one using job control language?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the difference between next sentence and continue in cobol programing language?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Which Search verb is equivalent to PERFORM…VARYING?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How many sections are there in data division in COBOL?
What are the different types of condition in cobol and write their forms.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How to print 10 to 1 if the input have only 10 digit number?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
what is the use of outrecord?