What is COUNTERS in PL/1? How to assign the COUNTER
variables? WHich Data Type it can be used for this?
Answer Posted / sravan
To count number of operations occured we use counters.
DCL I FIXED BIN(15); /* DECLARATION of counter */
DCL eof bit(1) initial ('1'b);
DCL 1 var_b,
2 inrec char(2);
read file(filename) into(var_b);
Do while(!eof);
put skip list('Hi');
i = i + 1;
read file(filename) into(var_b);
end;
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the distinction amongst include and copy?
can we describe the results of opening for input empty vsam files in a cobol program?
At what point are extension eliminators mandatory?
What is the use of base and index registers in the IBM 360/370 processor?
What is the term “where” for?
Is it possible to move the alphanumeric variables to a numeric variable?
When the job statement is used?
Explain foreign keys?
If an array is multi-dimensional dynamic array how do you deal with it & provide me some examples?
Can I redefine an x(200) field with a field of x(100) ?
Can you name a few software running under the mainframe?
Explore the syntax of the evaluate statement?
have you ever know what is the meaning of Packed Decimal
Name all the file-open modes
How do you get parameter from JCL to PL1?