Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
regarding picture class size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: regarding picture class size
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    Post subject: Re: regarding picture class size
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: 1452
Location: Chicago, IL

PostPosted: Fri Aug 19, 2005 12:32 pm    Post subject: Re: regarding picture class size
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: 464

PostPosted: Fri Aug 19, 2005 1:23 pm    Post subject: Re: regarding picture class size
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    Post subject: Re: regarding picture class size
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    Post subject:
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    Post subject: Re: regarding picture class size
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    Post subject:
Reply with quote

Hi nandakumar,

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

Try this:

http://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    Post subject:
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    Post subject: Re: regarding picture class size
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts question about dfsms management clas... Hervey Martinez IBM Tools 0 Tue Oct 10, 2017 6:19 pm
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us