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 delete a front spaces in a data-name/variable in
cobol
Example:-
01 data-name-1 PIC x(20) value " cobol language".
01 data-name-2 PIC x(20).
MOVE data-name-1 to data-name-2.
would like the value of data-name-2 is "cobol language".

Answer Posted / anjibabu

Deepak is partially right.

01 name1 pic a(20) value ' cobol language'.
01 name2 pic a(20).
01 name3 redefines name2 pic a(14) justified right.
PD
move name1 to name3.
display name2.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) How do u handle errors in BMS macro?

1923


Write the code to count the sum of n natural numbers.

1165


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1078


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

1348


how do you reference the printer file formats from cobol programs

1167


What is inspect in cobol ?

1260


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3219


What are different data types in cobol?

1246


What are the pertinent COBOL

2520


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

2432


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

2077


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2091


What is the difference between external and global variables in COBOL?

1389


Write some characteristics of cobol as means of business language.

1100


What are the cobol coding sheets?

1200