|
|
| Author |
Message |
krishnakumarramaraj
New User
Joined: 15 Nov 2005 Posts: 15 Location: chennai
|
|
|
|
pls any one of tell me that Can we use goto statement in inline_perform ?
If we use what will happen |
|
| Back to top |
|
 |
References
|
Posted: Fri Jul 25, 2008 2:38 pm Post subject: Re: Can we use goto statement in inline_perform ? |
 |
|
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2656 Location: italy
|
|
|
|
| Try and post Your findings |
|
| Back to top |
|
 |
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 198 Location: At my Desk
|
|
|
|
| krishnakumarramaraj wrote: |
pls any one of tell me that Can we use goto statement in inline_perform ?
If we use what will happen |
Yes you can use it will work fine... just write simple code to check it |
|
| Back to top |
|
 |
UmeySan
Senior Member
Joined: 22 Aug 2006 Posts: 624 Location: Germany
|
|
|
|
Hi krishnakumarramaraj !
We live in 2008!
In most firm's it's forbidden, to use GoTo-Command.
Programming in Cobol-II it's just a NoGo !!!" |
|
| Back to top |
|
 |
sedireswarapu
New User
Joined: 18 Jun 2008 Posts: 25 Location: India
|
|
|
|
Krishna,
Could you please tell us what exactly is your requirement and why would you like to use a GOTO in an inline perform?
You will have some other better option to make use of, instead of using that. |
|
| Back to top |
|
 |
krishnakumarramaraj
New User
Joined: 15 Nov 2005 Posts: 15 Location: chennai
|
|
|
|
| I faced this in an interview.Currently i am not working that's y asked. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7992 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| I faced this in an interview |
The compiler will typically permit this and when compiled it will execute.
Many organizations do not permit this as it is usually a very bad programming practice. One exception that comes to mind is GOing directly to an abend routine that among other things would make sure there was a dump produced. . . |
|
| Back to top |
|
 |
Moved: Mon Jul 28, 2008 4:13 am by dick scherrer From Mainframe COBOL to Interview Questions |
|
|