how to change picture class of copy book variable inside
program?
Answers were Sorted based on User's Feedback
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 |
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 |
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?
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?
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.
If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?
If I want to increase the Limit in GDG. What should I do?
what is the meaning of pic 9(09)v99-
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
Explain how to differentiate call by context by comparing it to other calls?
how can we get current dat and time thru cobol pgm
what is mainframe? what is the mainframe software ? what is use in s/w field?
can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)