COBOL - maximum no of PERFORM statements



COBOL - maximum no of PERFORM statements

Postby lakshmikanth » Wed Nov 02, 2011 1:43 am

How many maximum no of PERFORM statements can be used in COBOL program??
regards
lakshmikanth :)
lakshmikanth
 
Posts: 4
Joined: Wed Nov 02, 2011 1:30 am
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL

Postby enrico-sorichetti » Wed Nov 02, 2011 1:51 am

nothing that You could not find Yourself starting from
http://www-03.ibm.com/systems/z/os/zos/ ... index.html
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: COBOL

Postby lakshmikanth » Wed Nov 02, 2011 1:57 am

you mean,i can use any no of times??
regards
lakshmikanth :)
lakshmikanth
 
Posts: 4
Joined: Wed Nov 02, 2011 1:30 am
Has thanked: 0 time
Been thanked: 0 time

Re: COBOL

Postby Robert Sample » Wed Nov 02, 2011 2:41 am

you mean,i can use any no of times??
Can you not read Appendix B of the COBOL Language Reference manual for Enterprise COBOL (SC23-8528), which clearly states a maximum of 4,194,303 PERFORM statements?
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: COBOL

Postby Ed Goodman » Wed Nov 02, 2011 3:55 am

Now he doesn't have to Robert.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: COBOL

Postby BillyBoyo » Wed Nov 02, 2011 4:17 am

It does clearly state that, but I wonder exactly what it means? The maximum number of Procedure-names (same source) is 1,048,575 :-)

I guess to all but code-generators, the is effectively no limit. If you could, continously, code one perform in 20 seconds, 24/7, it would take nearly three years to reach the limit. I doubt you could edit the file after a while, either :-)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: COBOL

Postby Robert Sample » Wed Nov 02, 2011 8:28 am

It does clearly state that, but I wonder exactly what it means? The maximum number of Procedure-names (same source) is 1,048,575
And you are allowed to PERFORM the same paragraph / section more than once....
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: COBOL

Postby dick scherrer » Wed Nov 02, 2011 9:21 am

Hi Guys,

It does clearly state that, but I wonder exactly what it means? The maximum number of Procedure-names (same source) is 1,048,575
Ta! Daa!! And we have re-usability within the same module. . . :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to FAQ

 


  • Related topics
    Replies
    Views
    Last post