> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Tobias Schmid > Sent: Monday, April 25, 2011 12:32 PM > To: [email protected] > Subject: Re: Recursive PERFORM in COBOL > > > What triggered this is a desire on my part to __EASILY__ detemine the > > PERFORM sequence that got me to a particular paragraph. Right now, I > > must find the "PERFORM return" slot for the paragraph in execution to > > determine which paragraph the PERFORM verb is in. And then "loop" doing > > the same. And I'm not sure how to determine if a paragraph was truly > > PERFORM'ed as opposed to "dropped into" from the preceeding > paragraph. > > Some sort of "stack" would make this much simpler for me. > > > I think the problem comes with the "dropped into". > There should be no way, to "drop" into a paragraph - but if so, > then there are goto's - where only performs should be. > > Or have I missunderstood something?
I consider it lousy programming for general use, but it is certainly possible to write Cobol with "drop into" paragraphs. The programmer may not still be around to be shot either. Dave Gibney Information Technology Services Washington State University> > Tobias Schmid ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

