suppose i i am changing / updating record of subfile and i
want to change the record in reverse order . means i want to
change the bottom record first and so on through readc . how i
do it please any one explain .

Answers were Sorted based on User's Feedback



suppose i i am changing / updating record of subfile and i want to change the record in reverse or..

Answer / sathish

Not possible

Is This Answer Correct ?    4 Yes 0 No

suppose i i am changing / updating record of subfile and i want to change the record in reverse or..

Answer / maheshg

better to have multi occurance of DS load all the record
which is read through READC and read DS in reverse oreder
for changing / updating.

Is This Answer Correct ?    1 Yes 0 No

suppose i i am changing / updating record of subfile and i want to change the record in reverse or..

Answer / baggy

That is possible by using embedded sql to fetch the data
using CURSORS to subfile and group by ASCEND or DESCEND

Is This Answer Correct ?    1 Yes 1 No

suppose i i am changing / updating record of subfile and i want to change the record in reverse or..

Answer / dkumar3

Can't we use SETGT >> READPE >>> Update ?

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

You have a *USE authority on a Library and *All authority on a file in that Library.Can you change the data in that file?

1 Answers  


what will happen two jobs have same name are submitted

5 Answers   CTS,


Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes please help me by eloborating on that answer by writing a sample code for that sir

2 Answers   iGate,


how we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .

2 Answers  


RPG/400 faqs?

1 Answers   HSBC,






in which journalling which attributes are necessary??/

1 Answers   CTS,


What is the difference Return and InLr?

3 Answers  


1.How to load Records of a Physical file(PF) in the reverse order, in CL program?

2 Answers   Cap Gemini,


two attributes which govern the excecution of a job>>>>??

2 Answers   CTS,


can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E

1 Answers  


How to read a record from file where there is multiple record occurrence is available?

1 Answers  


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


Categories