View previous topic :: View next topic
|
Author |
Message |
nandakumar Warnings : 2 New User
Joined: 05 May 2005 Posts: 50
|
|
|
|
Hi,
what is maximum size allowed in picture class for declaring numeric data items, alphabetic data items and alphanumeric data items in vs cobol -II?
Thanking u. |
|
Back to top |
|
|
prasad_yadav20
New User
Joined: 12 Mar 2005 Posts: 13 Location: hyderabad
|
|
|
|
haii nanda kumar,
i know only numeric max length is 9(18). |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
NUMERIC - 18
ALPHABETIC/ALPHANUMERIC - 16777215
Regards,
Priyesh. |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI Nandakumar,
Priyesh already gaveanswer of your quiery.
Tell me one thing, why you can not try all this thing in test cobol program
Whenever you give more lenght the complier give the error and Limit.
Regards
Rupesh |
|
Back to top |
|
|
bmadhu346
New User
Joined: 05 Jul 2005 Posts: 7 Location: hyderabad
|
|
|
|
hi friend
how much size of picture clause is depending on the cobol compiler.
in general we r using some compilers contain the following size
if it is numeric
size is 9(18)
if it is alphabetis or alphanumeris
size is x(120)
ok
madhu |
|
Back to top |
|
|
bonniem
New User
Joined: 09 Aug 2005 Posts: 67
|
|
|
|
Madhu,
Quote: |
if it is alphabetic or alphanumeric
size is x(120)
|
Have you really verified this? I do not think it is right. I agree to Priyesh on this topic.
How do you handle large variables if the limit is 120. For example, if you mentioned is true then if you want a table of X(10), then the maximum occurs is 12. Could you clarify? |
|
Back to top |
|
|
stly Warnings : 1 New User
Joined: 25 Jul 2005 Posts: 93
|
|
|
|
hi madhu
the answer u hav specified is related to alphanumeric literal.in cobol74 it is max of x(120) and in cobol-85 it is max of x(160).priyesh is correct . if i m wrong please correct me. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
Back to top |
|
|
nandakumar Warnings : 2 New User
Joined: 05 May 2005 Posts: 50
|
|
|
|
hi friends,
i cant find out the answer for my doubt on picure class size in the above given surce,its not clear to me. |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
Numeric:9(18)
AlphaNummeric x(160)
100% sure |
|
Back to top |
|
|
|