Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8167
Location: East Dubuque, Illinois, USA

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: 2504
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: 10327
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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Default FTP options vasanthz All Other Mainframe Topics 2 Fri Aug 25, 2017 5:58 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us