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
 

 

What happens with the below PERFORM VARYING code

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

New User


Joined: 20 Feb 2006
Posts: 14

PostPosted: Thu Aug 23, 2007 6:57 am    Post subject: What happens with the below PERFORM VARYING code
Reply with quote

Hi,

can anyboday knows what exactly is happening or the given below peice of code is working...

PERFORM VARYING SUB FROM INDEX-CODE BY -1
UNTIL SUB NOT > THRESHOLD-LIMT


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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2007 8:09 am    Post subject:
Reply with quote

Hello,

There is more code that you have not posted.

From the little you've posted, assume the PERFORM started with INDEX-CODE being greater than TRESHOLD-LIMIT. The code will iterate until SUB is no longer greater than THRESHOLD-LIMIT.

If you post more code and the associated variables, someone can provide more info for you.
Back to top
View user's profile Send private message
Balraj

New User


Joined: 16 Aug 2007
Posts: 34
Location: Bangalore

PostPosted: Thu Aug 23, 2007 10:03 am    Post subject: Reply to: PERFORM VARYING ..help
Reply with quote

hi

Its a Inline Perform

The loop will executes and when it satisfy the condition control comes out

of the loop.
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