Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is meant by comp-3 and what is it used for?

0 Answers  


How is manual testing done in MF environment? what all are the steps to follow?

3 Answers  


What is distributed relational database architecture? And components?

0 Answers  


What are the different types of table spaces?

0 Answers  


What is the use of a COPYBOOK in Fileaid ?

4 Answers   Steria,






What is the distinction amongst include and copy?

0 Answers  


List the type of locks and explain each of them.

0 Answers  


GO TO stmt which of the following is not true A) GO TO stmt is not essential in the sense that it is possible to write programs without using GO TO B) The target of the GO TO stmt being a procedure name avoiding GO TO result in a program with no procedure name C) Indiscriminate use of GO TO stmt can make the control structure program substantially complex D) Too many GO TO stmts make a program difficult to understand

2 Answers   Accenture, IBM,


What will happen if both steplib and joblib are determined?

0 Answers  


Can we give +2 instead of +1 while creating a new gdg file?

0 Answers  


who will provide realtime projects for me on mainframe banking Or health care domain on bangalore."it's urgent for me" pls send uregent reply

3 Answers   IBM, Infosys,


Can you explain function of iebgener?

0 Answers  


Categories