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 / arpan

Probably you can write SPACES instead of ' ' in the
UNSTRING statement.

UNSTRING WS-NAME DELIMITED BY SPACES
INTO WS-CHAR1, WS-CHAR2, WS-CHAR3, WS-CHAR4, WS-CHAR5.
STRING WS-CHAR1, WS-CHAR2, WS-CHAR3, WS-CHAR4, WS-CHAR5
DELIMITED BY SIZE INTO WS-NAME1.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are declaratives and what are their uses in cobol?

1132


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1317


Difference between cobol and cobol-ii?

1195


What is a report item?

1093


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6452


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

1142


What is amode(24)?

1187


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

1042


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

1081


What is the difference between perform … with test after and perform … with test before?

1371


Define cobol?

1312


i want a program using by if, evaluate , string, unstring, perform, occurs?

4635


what happens if parmparameter passes zero bytes to the program

2082


what are decleratives in cobol?

2209


A table has two indexes defined. Which one will be used by the SEARCH?

1230