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

Can we move SPACES to numeric field and ZEROES to
alphabetic field? If yes what are the way doing this?

Answer Posted / siva

yes, we can move accordingly thru REDEFINES clause.
Example :
01 WS-A PIC 9(5).
01 WS-AR REDEFINES WS-A PIC X(5).
01 WS-B PIC A(5).
01 WS-BR REDEFINES WS-B PIC X(5).


MOVE 12345 TO WS-A.
MOVE SPACES TO WS-AR.
MOVE 'ABCDE' TO WS-B.
MOVE ZEROES TO WS-BR.

WS-A, WS-AR contains spaces and WS-B, WS-BR contains
zeroes.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

3091


What kind of error is trapped by on size error option?

1175


What is a report item?

1092


What is the use of intialize verb?

1178


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

1053


What rules are followed by the search verb.

1044


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3170


How do we get current date from system with century in COBOL?

1316


what is search and searchall?what is the diffrence between them?give an best example?

6660


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1228


What is rmode(24)

1099


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

1025


Can a Search can be done on a table with or without Index?

1230


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1098


What are various search techniques in cobol? Explain.

1025