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

I've one string with spaces ( I N D I A ). My question is I
want remove the spaces & combine in to single string without
space (INDIA).How we can write the cobol program & wich
options we need to use. Please let me know.

Answer Posted / sup

small modification to ans 9th,

If ws-india(ws-i:1) = spaces
continue
Else
move ws-india(ws-i:1)to ws-india-f(i:1)
i=i+1
End-if

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2270


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5738


Write a cobol program making use of the redefine clause.

1166


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

1963


For rewrite, why is it mandatory that file needs to be opened?

1103


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2371


What is cobol?

1237


what are decleratives in cobol?

2253


how to move the records from file to array table. give with code example

2671


What is the difference between Global and External Variables?

1371


What are the cobol coding sheets?

1258


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1148


What is Pic 9v99 Indicates in COBOL?

1253


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1163


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

1239