Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Explain index cardinality?

0 Answers  


How to compare two files by using sort?

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 a configuration management system, give examples?

0 Answers  


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

0 Answers   IBM,


bind by copy...bind by ref?

0 Answers  


how can we define a gdg?

0 Answers   IBM,


have you ever know what is the meaning of Packed Decimal  

0 Answers  


I want to increse the size of one existing dataset, can anyone tell me the TSO command throgh that I can edit it.

4 Answers   HCL, Xansa,


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

6 Answers  


how are start and xctl different?

0 Answers   IBM,


What are the different types of PL/1 files?

0 Answers   IBM,


Categories