COBOL - maximum no of PERFORM statements

lakshmikanth
Posts: 4
Joined: Wed Nov 02, 2011 1:30 am
Skillset: JCL,VSAM
Referer: TCS faculty

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 :)

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

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

lakshmikanth
Posts: 4
Joined: Wed Nov 02, 2011 1:30 am
Skillset: JCL,VSAM
Referer: TCS faculty

Re: COBOL

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

you mean,i can use any no of times??
regards
lakshmikanth :)

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

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?

Ed Goodman
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Skillset: 30 years on IBM mainframes
Referer: Searched for Frank Yeager

Re: COBOL

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

Now he doesn't have to Robert.

BillyBoyo
Global moderator
Posts: 3805
Joined: Tue Jan 25, 2011 12:02 am
Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
Referer: Google

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 :-)

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

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....

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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