how to get no of records in file in rpg with out cl cmd
Answer Posted / shobhit
Read the file from beginning and increase the counter by
one till end of file. At the last the counter value will be
the no of records in file.
| Is This Answer Correct ? | 5 Yes | 15 No |
Post New Answer View All Answers
how many maximum spaces could be given in o specs?
what is the use of jdftval in join logical file?
how can you specify no duplicate key?
what is the use of data structures?
How can we read file using curser? how to define a curser?
What are the record format field mapping options in cpyf?
what is the purpose of ovrdta (override data) keyword?
what is the sequence when using cursor?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.
what is a composite key?
how many types of display are available on as/400 for user interaction?
what is sflinz and sflrna?
why is as/400 called object oriented machine?
which are the relational operators in rpg?