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...

in cobol i have one file it contains records like
10,4,23,98,7,90..... total records 100. iwant 10 to 20 in
reverse order in cobol environ ment any one please give the
answer......

Answer Posted / ramesh kumar

let me explain the ans for if the file is PS.
fist compute the value 100-80 into one ws-variable.
then read the file and add 1 to some ws-count variable upto 20th record then check for the conditon if it is 20th record
like if ws-variable = ws-count
if it is then write into o/p rec, now decresae 1 from ws-variable like subtract 1 from ws-variable
and read file again add 1 to ws-count then check for the conditon if it is 19 recrd then write into o/p rec.
perform until ws-variable=0.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1361


Discuss about changing dataset name in proc.

1245


Write a program to enter and display the names of students in a class using the occurs clause.

1223


What is cobol?

1251


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1142


how do you reference the ksds vsam file formats from cobol programs

1203


) How do u handle errors in BMS macro?

1983


how do you reference the esds vsam file formats from cobol programs

1228


What are declaratives and what are their uses in cobol?

1214


How do you get the data to code the BMS macro?

1987


What is report-item in COBOL?

1170


IF I mention stop run in CICS what happens?

2391


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1246


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

1338


When is inspect verb is used in cobol?

1266