can we redefine 77 level item is it possible
Answers were Sorted based on User's Feedback
Answer / ariyan
Yes You can redefine a 77 level variable but with 77 alone.
eg:
77 ws-amount-n pic 9(02).
77 ws-amount-x redefines ws-amount-n
pic x(02).
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / joshin
yes it is possible.oly criteria behind the redifine is you
have to follow the same level no
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / amit singh
yes it is possible.oly criteria behind the redifine is you
have to follow the same level no.
it's not possible.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.
There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
how many divisions are there in cobol
Mention the guidelines to write a structured cobol program?
1.What is the limit of linkage section?
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 ......
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.
level number 77 is used to define a)group data b)elementary data c)redefine d)none
can we read in input the file with a variable length ? please , how ..could you help me ?
I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."