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 drda?

0 Answers  


in options (main) , what is meaning of main . if u not used main what will happen? After compiling, os will not understand where to load and execute from

0 Answers   AppLabs,


What is meant by an isolation level?

0 Answers  


What is Framework & How it work?

0 Answers   IBM,


Explain a linkage segment

0 Answers  






If DB2 query returns in null value, how do you work with it in PL/1?

0 Answers   IBM,


which one of the following cannot cause more than one execution of paragraph that may be nam in statement. A) simple perform B) perform with time C) perform until D) perform varying

3 Answers   Accenture,


How do you find whether any generations exist under a gdg base?

0 Answers  


Where is the vsam ksds placed?

0 Answers  


What is the advantage of defragmentation?

0 Answers  


What is the difference between hdam and hidam databases?

0 Answers  


What is the use of base and index registers in the IBM 360/370 processor?

0 Answers  


Categories