How to update selected fields from pf without using update
opcode.
How to read all member in Rpg-3,without using any cl command?
Answers were Sorted based on User's Feedback
Answer / vasu devareddy.g
we can update selected fields from pf using EXCEPT OPCODE
| Is This Answer Correct ? | 34 Yes | 3 No |
Answer / rahul
we can update selected fields of a pf using EXCEPT opcode
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / gurjit oberoi
without using cl command we can read members in RPG using
EXTMBR in F spec like
EXTMBR(member_name)
| Is This Answer Correct ? | 15 Yes | 4 No |
Answer / sivakumar y
Hello Friends, Question asked by vinit is how to read all
members in RPG3, but not in RPGLE.
I think the answer for this question is:
1)Need to declare the rquired file in USROPN mode in RPG.
FFILE1 UF E K DISK Usropn
2)Using QCMDEXC API execute the override command. The
value to be passed in first parameter is like below.
D Cmd1 C OVRDBF FILE(FILE1)
TOFILE(TOOLBOX/FILE1) MBR(*ALL)'
Regards
siva
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / kamlesh
create new LF which is based on multi memeber PF
This LF has only one data member which is based on
all data members present in PF. Now use this LF
in yr RPG3.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / daithuan
1.Why not use embedded SQL?
2.Why read all members, surely if you want to update the pf file base on a certain condition then every record that matches that condition will be updated.
Hope that helps!!!
| Is This Answer Correct ? | 3 Yes | 2 No |
Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?
Need a sql query: retrive all duplicate records in table
i hav 2 logical files(L1,L2) both r derived from one physical file(P1). how can i use both the logical files in one RPG program? if yes what i have to d.
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
use of PUTOVR,OVRDTA,KEEP keywords?
wat is curser?? and its types???
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
What will happen if we r using seton lr after return or vice versa.
Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?
what is EXCEPT command in rpg and use
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?