1)how to do date validation in rpg?
2)how to delete dUPLICATE RECORDS?

Answers were Sorted based on User's Feedback



1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?..

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

1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?..

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

Post New Answer

More RPG400 Interview Questions

steps involved in debugging and types of debugging modes?

1 Answers  


Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 Answers  


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


what is the use of sflnxtchg?

0 Answers   IBM,


list down and describe the sub systems vailable

5 Answers   IBM,






without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?

3 Answers   HSBC, TCS,


HI, 1: WHAT IS THE FUNCTION OF %KDS?WITH PROGRAMMING CODES EXAMPLE 2: WHAT IS THE FUNCTION OF Z-ADD AND Z-SUB ? WITH PROGRAMMING CODES EXAMPLE

1 Answers   IBM,


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


how can we know running job is batch or intractive ? i need all the possibilites.........plz help me

3 Answers   HSBC, IBM,


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


What is the purpose of FRCDTA keyword?

3 Answers   IBM,


can i use unique key in LF

3 Answers   TCS,


Categories