What is an in line PERFORM? When would you use it? Anything
else to say about it?
Answers were Sorted based on User's Feedback
Answer / ravikumar
Inline perform executes set of statments without going to
any paragraph written seperately.Depending on
scenario.....for example,when you are using the internal
table of small size..
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / hemanth reddy
Inline perform is used for that paragrapg only
Ex:Move 0 to sum-of-digits.
Move 1 to counter.
perform until counter > N
Add counter to sum-of-digits
Add 1 to counter
End-perform.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sreenath
perform until <cond>
<stmt>
<stmt>
end perform.
-the stmts which are between perform & end perform will be
executed till the specified cond is satisfied.
-there should be no periods between perform & end perform.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mallappa
Inline perform executes set of statments at once .
| Is This Answer Correct ? | 0 Yes | 2 No |
have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
What is a report item?
How is sign stored in a comp-3 field?
What are different data types in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
how to submit a jcl by cobol program. clear me with an example.
created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end