1)how to do date validation in rpg?
2)how to delete dUPLICATE RECORDS?
Answers were Sorted based on User's Feedback
Answer / vilas
factor1 opcode factor2 result eq
key setll pf
reade pf 50
dow *in50=*off
delete rec1
reade pf 50
enddo
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / sumathi
For Date validation we can use TEST Opcode
Duplicate records can be deleted using RRN
Is This Answer Correct ? | 4 Yes | 10 No |
Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?
Why we cannot call a service program? If I add a PEP can i call the service program?
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?
What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???
Suppose we have 10 records with same name and we are reading using READE,after 4 record i have to use CHAIN what is the output
How to declare the pull button in AS/400..
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
What is the purpose of record level identifier?
difference betwen keywords and opcodes
Delete FileName at first statement in RPG.
How would display prime numbers using CL program?
RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.