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: 8117
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: 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: 10274
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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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