Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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?

2575


How to remove 2 duplicate records and copy only one using job control language?

1213


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1157


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

2068


What is the difference between next sentence and continue in cobol programing language?

1217


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?

1322


Which Search verb is equivalent to PERFORM…VARYING?

1037


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1134


How many sections are there in data division in COBOL?

1125


What are the different types of condition in cobol and write their forms.

1110


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1343


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

2098


How to print 10 to 1 if the input have only 10 digit number?

1254


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17868


what is the use of outrecord?

2203