30 pts.
 COBOL PICTURE CLAUSE
WHAT IS THE MAXIMUM LENGTH A WORKING STORAGE VARIABLE CAN HAVE?

IS IT , PIC 9(18) FOR NUMERIC AND PIC X(1024) FOR ALPHANUMERIC

OR WE CAN GIVE MORE THAN THAT??

 



Software/Hardware used:
ASKED: June 19, 2012  9:13 AM
UPDATED: June 20, 2012  3:47 AM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It depends. Which COBOL compiler are you using? And what version?

For example, the COBOL/400 compiler limits numeric data items to 18 digits at V5R3 and alphanumeric items to 3000000 character positions. The ILE COBOL compiler at i 7.1 allows packed and zoned decimal items to be 63 digits and alphanumeric items to be almost 16MB. (Integer numeric items are 18 digits.)

Without knowing the compiler and the version, it’s hard to be sure.

Tom

 108,310 pts.