IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

regarding picture class size


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Fri Aug 19, 2005 10:05 am
Reply with quote

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
View user's profile Send private message
prasad_yadav20

New User


Joined: 12 Mar 2005
Posts: 13
Location: hyderabad

PostPosted: Fri Aug 19, 2005 10:14 am
Reply with quote

haii nanda kumar,
i know only numeric max length is 9(18).
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Aug 19, 2005 12:32 pm
Reply with quote

NUMERIC - 18
ALPHABETIC/ALPHANUMERIC - 16777215

Regards,

Priyesh.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri Aug 19, 2005 1:23 pm
Reply with quote

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
View user's profile Send private message
bmadhu346

New User


Joined: 05 Jul 2005
Posts: 7
Location: hyderabad

PostPosted: Fri Aug 19, 2005 6:33 pm
Reply with quote

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
View user's profile Send private message
bonniem

New User


Joined: 09 Aug 2005
Posts: 67

PostPosted: Sat Aug 20, 2005 11:01 am
Reply with quote

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
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Sat Aug 20, 2005 7:10 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Aug 20, 2005 9:42 pm
Reply with quote

Hi nandakumar,

Hopefully, the answers you received here taught you something: always ask for a source.

Try this:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3MG10/APPENDIX1.7?DT=20020924162905

See:

Numeric item digit positions
Num-edit character positions
Elementary item size
Back to top
View user's profile Send private message
nandakumar
Warnings : 2

New User


Joined: 05 May 2005
Posts: 50

PostPosted: Sun Aug 21, 2005 5:48 pm
Reply with quote

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
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Mon Aug 22, 2005 10:19 am
Reply with quote

Numeric:9(18)
AlphaNummeric x(160)

100% sure
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts building java class with zip4j.jar on... Java & MQSeries 0
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts Dataset size increase on adding 1 byt... DFSORT/ICETOOL 8
Search our Forums:

Back to Top