how to get no of records in file in rpg with out cl cmd
Answers were Sorted based on User's Feedback
Answer / shobhit
With the help of INFDS(File information data structure) we
can know the no of records in file.
Ex.
D NUM_RCDS 156 159I O * Num of records
Is This Answer Correct ? | 44 Yes | 0 No |
Answer / 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 |
If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...
How do you grant authority?
What is acronym of RPG?
What is the function of RJE Conversion Utility?
Can we use OVRDBF command without using of OPNQRYF ? Or can we use OPNQRYF command without using of OVRDBF command ?
What is dynslt?
Define each of the following operation codes a, b, c, d, e
is it possible to create a physical file without dds?
can u plz tell me is there any difference between SHELL SCRIPT & SFTP SCRIPT? I want to run LS & GET(automatically) command from CL program....which script can be used?
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...
What is SDA used for?
How to trap errors in CL?