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


Please Help Members By Posting Answers For Below Questions

accept ws-date from date will return the current date?

542


Explain path?

533


File1 has 100 records and file2 has 200 records I want to copy 50 records which are in both file into file3?

499


What is database descriptor?

570


How do you write from PL/1 code to JCL?

1824






What are some uses of the evaluate statement?

504


What is the need of running runstats in the test environment?

575


10. Why mainframe testing is so important? Give any three advantages of Mainframe Testing?

3051


what difference exists between control area and control interval?

571


What is the binary search?

539


We have an output dataset in job with disp parameter as shr.

535


Name all the file-open modes

651


does anybody know about niit technologies ? how is that company ? any body working in that company ? please answer my question.I got selected in NIIT Technologies delhi.

2514


how do we describe static call and dynamic call?

582


what is u r recent task in insurence project?..plz tell how to tell this.

2817