What will happen if a variable is declared as below..
Explain with an example? Working storage section:-

01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.

What will happen I am going to Display the WS-VARX and WS-
VARN?

Answer Posted / siva

WS-VARX = 12345FGHIJ
WS-VARN = 12345

Is This Answer Correct ?    1 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


example for sub strings ? and refernce modifications whit output pls

1843


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

1840


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2052


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

708






What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

670


Differentiate between structured cobol programming and object-oriented cobol programming.

663


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

738


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

800


What are all the divisions of a COBOL program?

660


what happens if parmparameter passes zero bytes to the program

1659


What are the access modes of START statement?

716


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


How many bytes S(8) comp field occupy and its maximum value?

1626


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

695