How do you do in-line PERFORM?
Answers were Sorted based on User's Feedback
Answer / mahathiaz
PERFORM ... <UNTIL> ...
<sentences>
END-PERFORM
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / saravanan
IN inline perform the procedure name is omited.an inline
perform must be delimited by the end peform statement
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ravikiran
in inline perform the statements with in the loop does n't
contain a period '.'
inline perform does not contain any para.
perform until i > 4
display a
accept b
end-perfom.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manvitha
In-line perform is used to perform the repetitive tasks within a paragraph or section itself.
Perform
statements
end-perform
perform until condition
statements
end-perform
perform WITH TEST before/after until condition
statement
end-perform
| Is This Answer Correct ? | 1 Yes | 0 No |
Can we use goto statement in inline_perform ?
What does the INITIALIZE verb do?
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?
can we use the two 01 level in file discription ?
period is missing in the cobol program which error we getting
what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?
15 Answers ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,
a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?
How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?