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 X(9) to 9(9). If yes what are the ways for
doing this?

Answers were Sorted based on User's Feedback



Can we move X(9) to 9(9). If yes what are the ways for doing this?..

Answer / varun v

yes you can..use REDEFINES for the same purpose.

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

Now you can move X(9) variable to WS-VARX.Eventually it is
moved to the 9(9) variable WS-VARN.

Is This Answer Correct ?    12 Yes 5 No

Can we move X(9) to 9(9). If yes what are the ways for doing this?..

Answer / ashish

Alphanumeric to numeric movement is possible but not always,
say if it has numeric value then only it is possible o/w if
it contains alphabetic value then it wont b possible

Is This Answer Correct ?    10 Yes 4 No

Can we move X(9) to 9(9). If yes what are the ways for doing this?..

Answer / nidhi

The NUMVAL function returns the numeric value represented by the
alphanumeric character string specified in an argument. The function
strips away any leading or trailing blanks in the string, producing a
numeric value that can be used in an arithmetic expression.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the difference between CONTINUE & NEXT SENTENCE ?

2 Answers  


What are the differences between COBOL and COBOL II?

1 Answers   CSC,


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


Syntax for JCLLIB & JOBLIB???

1 Answers  


why we are using picture clause in the cobol programs?

2 Answers  


diffrence between z(2) and z9(2)

4 Answers   Cap Gemini,


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


is it possible to pass an SQL query inside a jcl which is inside a cobol program?

5 Answers   CTS,


Categories