Can anyone please give the example of Inline Perform.

Answers were Sorted based on User's Feedback



Can anyone please give the example of Inline Perform...

Answer / shanuss

PERFORM UNTIL I = 10
MOVE RATE(I) TO SPLIT-TOT(1)
ADD 1 TO I
END-PERFORM.

Is This Answer Correct ?    4 Yes 0 No

Can anyone please give the example of Inline Perform...

Answer / nikhil

There is one special thing about inline performs - there
has to be a END-PERFORM associated with the perform
statement otherwise it will give compile error. I have
tried this as well.

Is This Answer Correct ?    3 Yes 0 No

Can anyone please give the example of Inline Perform...

Answer / abhishek vashishta

PERFORM UNTIL WS-EXIT = 'Y'
DISPLAY 'ENTER UR NAME '
ACCEPT WS-NAME
DISPLAY 'WANT TO EXIT'
ACCEPT WS-EXIT
END-PERFORM.

Is This Answer Correct ?    2 Yes 0 No

Can anyone please give the example of Inline Perform...

Answer / anjan

HI,

Inline perform is like inline function in C++. which
means in this case the control will not transfered to any
particular paragraph where as Immediately throws the result
of the code which has mentioned in the block perform and
end-perform.

Please correct me if i am wrong.

Is This Answer Correct ?    0 Yes 0 No

Can anyone please give the example of Inline Perform...

Answer / ssampath

perform witin a section

Is This Answer Correct ?    1 Yes 1 No

Can anyone please give the example of Inline Perform...

Answer / bijay krishna mohapatra

perform varyiung i from 1 by 1 under i>5
display i
add 1 to i
end perform
display 'bijay'
stop run.
***********rules********:
1.in line should be terminated into scope delimiter(end-if)
2.we cant apply the after opt.
3.nesting can be done hr.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

How to increase the logical record length of existing PS file?

7 Answers  


how will u code parm parameter and where pls ?

3 Answers   DELL,


How to define a array dynamically.....

5 Answers   Fidelity,


Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


can any one give good example for cond 88 level number and for renames pls urgent dudes ?

3 Answers   DELL,






what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


how can i see junk values in dclgen or in hostvariable of comp ?

0 Answers   DELL,


can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,


can i give 9(10) in comp 3 instead of s9(10) ? if i can give wht would be ths ans

2 Answers   DELL,


Discuss about changing dataset name in proc.

0 Answers  


using redefine can you redefine lower variable size to higher variable size?

3 Answers   Patni,


Categories