Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Bypass the perform para which writes the default code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
patlolla
Warnings : 1

New User


Joined: 05 Jun 2006
Posts: 10

PostPosted: Mon Jun 07, 2010 7:17 pm    Post subject: Bypass the perform para which writes the default code
Reply with quote

Hi,

In my program, I have multiple conditions as below

Code:
IF wscond1
   if wscond2
      Perform u780-para thru u780-exit
   end-if
end-if.

I would like to bypass the above perform para which writes the default code in the program. Could you please suggest me how to do..

Thanks
patlolla
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Jun 07, 2010 7:31 pm    Post subject: Re: COBOL
Reply with quote

Set wscond2 to a false value as in:
Code:
IF wscond1
   move (a false value) to wscond2
   if wscond2
      Perform u780-para thru u780-exit
   end-if
end-if.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7999
Location: Bellevue, IA

PostPosted: Mon Jun 07, 2010 7:32 pm    Post subject:
Reply with quote

Your post is not at all clear. Under what conditions do you want to bypass the PERFORM? If for all conditions, why not just delete or comment out the 5 lines of code? If for SOME conditions, which conditions -- you'll have to change the IF logic appropriately?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jun 07, 2010 7:49 pm    Post subject: Reply to: COBOL
Reply with quote

Reminds me of the posting "LOOK UP". My neck is still hurting.... icon_rolleyes.gif

Bill
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Mon Jun 07, 2010 7:49 pm    Post subject: Reply to: COBOL
Reply with quote

when posting use meaningful titles !
COBOL title in a COBOL forum just tells nothing
see
http://catb.org/~esr/faqs/smart-questions.html
on how to make the most when asking questions
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jun 09, 2010 10:09 pm    Post subject:
Reply with quote

Why not just use a "control-break" after first IF, like:
Code:
IF WSCOND1     
   CONTINUE   
   IF WSCOND2
.
.
.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us