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

What is the compute verb? How is it used?

1182


Write the code implementing the perform … varying.

1113


What are the access modes of START statement?

1317


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1259


how to access the file from prodution from changeman tool and to submit a file to production

7618


how do you reference the variable unblock file formats from cobol programs

1370


What are the different rules to perform a Search?

1133


how do you reference the rrds file formats from cobol programs

1648


What is comp-1 and comp-2?

1273


Explain how to differentiate call by context by comparing it to other calls?

1237


Difference between array and sub-script ?

1696


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1290


What is link edit in cobol?

1266


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

1246


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1286