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

How many tims does para A will be performed


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

New User


Joined: 06 Apr 2005
Posts: 30
Location: visakhapatnam

PostPosted: Mon Jan 22, 2007 1:37 pm
Reply with quote

Hi All,

can I know How many tims does para A will be performed ?

05 ws-a pic 9(3) value 100.
.................

PD.

............................
Perform A ws-a times.

A.

............
............
Move 200 to ws-a.
............

End-A.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Jan 22, 2007 1:59 pm
Reply with quote

Rsm_deepak,

I think this would be an interview question a very basic one c u r initianizing the value of a variable as 100 and performing a para
Perform A ws-a times.
this statement will make para a to perform 100 times only , this is because u r re-initializing the variable only inside the para which would not make an impact on performing the para.

Cheer's.
Thamilzan.
Back to top
View user's profile Send private message
sachin_star3
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 78
Location: pune

PostPosted: Mon Jan 22, 2007 4:21 pm
Reply with quote

yes your correct
this para execute only 100time
remember some point always when you solving this type of question
that 1) perform n times: then it peforms n times,its value cant change
2) perform vaying i from 1 by 1:this time the value can be chenge the loop dependent on inner value defined in paragraph.
correct me if wronge
-sachin borase
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
This topic is locked: you cannot edit posts or make replies. Programa para Realiza Operaciones sob... JCL & VSAM 3
No new posts data moved using MVI on para-name. PL/I & Assembler 4
No new posts problem in select max when executing ... IMS DB/DC 6
No new posts Easytrieve - Report writing - Only 1 ... CA Products 2
No new posts Getting the PARA name using rexx CLIST & REXX 8
Search our Forums:

Back to Top