how to change picture class of copy book variable inside
program?

Answers were Sorted based on User's Feedback



how to change picture class of copy book variable inside program?..

Answer / sathishkumar

Hi,

Use Replacing option along with COPY.

Copy book(SAMPLE) defined as :

01 COPY REC
05 Emp-no 9(5).
05 name x(5).

If you want to change the Emp-No to 9(6).

Copy SAMPLE Replacing EMp-no by EMP-no1.
Define EMp-no1 as 9(6.

Is This Answer Correct ?    16 Yes 4 No

how to change picture class of copy book variable inside program?..

Answer / sandeep_1985

You need to redefine copybook group variable in program and
then give the new picture clause for that.

I think that is the only way you can do. Correct me if i am
wrong.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More COBOL Interview Questions

I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?

6 Answers   IBM,


hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


Differentiate COBOL and COBOL-II?

0 Answers  


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.

0 Answers   IBM,


If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?

8 Answers   CTS,






If I want to increase the Limit in GDG. What should I do?

1 Answers   IBM,


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH

2 Answers   Cap Gemini,


Explain how to differentiate call by context by comparing it to other calls?

0 Answers  


how can we get current dat and time thru cobol pgm

3 Answers   DELL,


what is mainframe? what is the mainframe software ? what is use in s/w field?

7 Answers   CSE,


can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)

13 Answers   CTS,


Categories