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

where do u use low-value and high value in cobol

3 Answers   CGI,


What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


) what is the difference between AID and HANDLE AID?

0 Answers   IBM,


what is s000 u4087 error? please give the all error codes in cobol,jcl.

0 Answers  






Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya

2 Answers   CSC,


i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


What are the differences between COBOL and COBOL II?

1 Answers   CSC,


What is the use of intialize verb?

0 Answers  


what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


What is file status 39 ?

10 Answers   JPMorgan Chase,


if a=b how the flow will complete??? perform test through test-exit. perform activa through activa-exit. test. if a=b then next sentence else move a to c. test-exit. exit. activa. -- -- activa-exit. exit.

1 Answers   IBM,


Categories