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 / sandy

Mallikarjun is 100% correct

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

855


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1934


Write a program to explain size error.

673


What are the pertinent COBOL commands?

2623


What is the difference between PIC 9.99 and PIC9v99?

781






How do you define a variable of comp-1 and comp-2?

701


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10607


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

642


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701


Whats the difference between search & search ALL?

5264


Write some characteristics of cobol as means of business language.

619


What are the cobol coding sheets?

664


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.

2056


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

631


what is difference between cobol and cobol/400

21560