What is COUNTERS in PL/1? How to assign the COUNTER
variables? WHich Data Type it can be used for this?

Answers were Sorted based on User's Feedback



What is COUNTERS in PL/1? How to assign the COUNTER variables? WHich Data Type it can be used for ..

Answer / nygrande

COUNT is a Builtin in PL/1.

SYNTAX:

I = COUNT (file-name);

EXAMPLE:

I = COUNT (PAYROLL);

It returns the number of data items transfered during the
last GET or PUT of the file PAYROLL.

Is This Answer Correct ?    1 Yes 0 No

What is COUNTERS in PL/1? How to assign the COUNTER variables? WHich Data Type it can be used for ..

Answer / 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

More IBM MainFrame AllOther Interview Questions

Why banking use IBM framework?

1 Answers   IBM,


how can u view a vsam file using file-aid

5 Answers   CSC, IBM,


what optimum values can we find for freespace, ci etc?

0 Answers   IBM,


how do you seton setoff group of indicators

0 Answers  


What is the function of iebgener?

0 Answers  






hi provide info about any real time requirement in health care and banking services mainframe applications. pls send immediate reply to me.

0 Answers  


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

0 Answers   IBM,


how to handle duplicate records in rpg program?

0 Answers  


what is the role of the is numeric clause?

0 Answers   IBM,


Redefines clause cannot be used in a) working-storage section b) 77 c) 66 d) elementary

3 Answers   Accenture,


what is the use of overlay keyword

0 Answers  


how to handle -911 (deadlock) error in a db2 program so that the program will never abend?

0 Answers   IBM,


Categories