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 / deepak dada

01 data-name-1 pic value " cobol language" justified
right.
01 data-nane-2 pic(20).
01 data-name-3 redifines data-name-2 pic x(14).
move data-name-1 to data-name-3.
display data-name-3.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1280


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

1147


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2438


What is rmode(24)

1199


How are the next sentence and continue different from each other?

1340


What are different data types in cobol?

1388


What is link edit in cobol?

1269


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4213


How do you reference the following file formats from cobol programs?

1206


What is the local-storage section?

1195


What are the access modes of START statement?

1329


Why did you choose to work with ibm mainframe cobol programming?

1161


Have you used comp and comp-3 in your project? And how?

2522


How can you get the ksds file records into your cobol program?

1138


Can we change the password using ALTER? anyone tried and changed?

2080