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

How will u give input data to cobol program apart from PARM & Instream data?

6 Answers  


Mainframe project required Postby mache123 » Thu Jan 29, 2009 9:10 pm hello..... I want to know about some real time projects.If any one have any Mainframes project, please provide me documentation of it Or else give me the link where can I find that Mainframes projects with Documentation...... or suggest me any if......please

0 Answers   IBM,


Explain the meaning of spufi?

0 Answers  


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,


List the type of locks and explain each of them.

0 Answers  






What is a configuration management system, give examples?

0 Answers  


What is a mainframe?

0 Answers  


Explain database descriptor in brief?

0 Answers  


have you ever know what is the meaning of Packed Decimal  

0 Answers  


What is the function of the verb initialize?

0 Answers  


HOW CAN YOU VIEW LAST 10 DATASETS CREATED BY YOU?

2 Answers  


Explain eib?

0 Answers  


Categories