Page 1 of 1

COBOL - maximum no of PERFORM statements

PostPosted: Wed Nov 02, 2011 1:43 am
by lakshmikanth
How many maximum no of PERFORM statements can be used in COBOL program??

Re: COBOL

PostPosted: Wed Nov 02, 2011 1:51 am
by enrico-sorichetti
nothing that You could not find Yourself starting from
http://www-03.ibm.com/systems/z/os/zos/ ... index.html

Re: COBOL

PostPosted: Wed Nov 02, 2011 1:57 am
by lakshmikanth
you mean,i can use any no of times??

Re: COBOL

PostPosted: Wed Nov 02, 2011 2:41 am
by Robert Sample
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?

Re: COBOL

PostPosted: Wed Nov 02, 2011 3:55 am
by Ed Goodman
Now he doesn't have to Robert.

Re: COBOL

PostPosted: Wed Nov 02, 2011 4:17 am
by BillyBoyo
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 :-)

Re: COBOL

PostPosted: Wed Nov 02, 2011 8:28 am
by Robert Sample
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....

Re: COBOL

PostPosted: Wed Nov 02, 2011 9:21 am
by dick scherrer
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