PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

get the no.of records

View previous topic View next topic Go down

get the no.of records

Post  muthuraman on Tue Oct 27, 2009 1:44 am

how to get no of records in file in rpg with out cl cmd?

Regards,
Muthuraman.

muthuraman

Posts : 42
Join date : 2009-08-28

View user profile

Back to top Go down

ONE WAY TO GET THE RECORDS

Post  soundhar on Tue Dec 14, 2010 7:12 pm

DECLARE FILE AND HAVE A VARIABLE AS "I" AND MAKE IT AS ZERO...
READ FILE 30
*IN30 DOWEQ *OFF
ADD 1 I
READ FILE 30


I CONTAINS THE NUMBER OF RECORDS

soundhar

Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai

View user profile

Back to top Go down

Re: get the no.of records

Post  arifg2005 on Fri Mar 16, 2012 1:51 pm

For this another way to we know the number of records in a file using file information data structure..

arifg2005

Posts : 3
Join date : 2012-03-15
Age : 33
Location : Chennai

View user profile

Back to top Go down

Re: get the no.of records

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum