IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Types of PERFORM statements avaialble


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ANKUL KHANDELWAL

New User


Joined: 15 Feb 2007
Posts: 8
Location: pune

PostPosted: Fri Feb 23, 2007 9:43 pm
Reply with quote

Hi All,
how many types of perform statements are their.
and also plz tell difference between perform with test before and perform with test after.






thanks,
ankul
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Fri Feb 23, 2007 10:02 pm
Reply with quote

Hi ANKUL KHANDELWAL,

Quote:
how many types of perform statements are their.

PERFORM
PERFORM THRU
PERFORM 'N' TIMES
PERFORM UNTIL
PERFORM VARYING WITH 'N' UNTIL OPTION


Quote:
difference between perform with test before and perform with test after.


The test condition which you are specifying in the perform is checked before if you are giving "TEST BEFORE "
likewise the condition is checked after executing the loop atlease one time in "TEST AFTER "
"TEST BEFORE" will execute only if the condition is met ...
"TEST AFTER" will execute atlease one time then the condition is checked.

Let me know if you need any more details ..
Back to top
View user's profile Send private message
vineela

New User


Joined: 26 Feb 2007
Posts: 1
Location: bangalore

PostPosted: Mon Feb 26, 2007 3:38 pm
Reply with quote

hi,

further clarification on the above topic.
which will be the default?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Feb 26, 2007 4:34 pm
Reply with quote

HI Vineela,

Quote:
which will be the default?


What do u mean by this? If u r asking which is default between test befor & test after then answer is test befor.

Let me know if i misunderstood
Back to top
View user's profile Send private message
devidas-patil

New User


Joined: 08 Jan 2007
Posts: 54
Location: pune

PostPosted: Mon Feb 26, 2007 4:50 pm
Reply with quote

I think so she asking about which will be default when we are using the perform varying.
if we are using perform varying then
test before will be the default.
Back to top
View user's profile Send private message
ANKUL KHANDELWAL

New User


Joined: 15 Feb 2007
Posts: 8
Location: pune

PostPosted: Mon Feb 26, 2007 7:38 pm
Reply with quote

HI ALL,
MY ISSUE RESOLVED BOZ.THANK U VERY MUCH,THERE WAS A CONFUSION ,SOME SAID 6 OR 7 TYPES ARE THERE.



THANKS AND REGARDS
ANKUL M KHANDELWAL
PUNE.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Use of Perform Thru Exit COBOL Programming 6
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Embeding DB2 sql statements in scirpt... DB2 7
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
Search our Forums:

Back to Top