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



How to update selected fields from pf without using update opcode. How to read all member in Rp..

Answer / vasu devareddy.g

we can update selected fields from pf using EXCEPT OPCODE

Is This Answer Correct ?    34 Yes 3 No

How to update selected fields from pf without using update opcode. How to read all member in Rp..

Answer / rahul

we can update selected fields of a pf using EXCEPT opcode

Is This Answer Correct ?    12 Yes 0 No

How to update selected fields from pf without using update opcode. How to read all member in Rp..

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

How to update selected fields from pf without using update opcode. How to read all member in Rp..

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

How to update selected fields from pf without using update opcode. How to read all member in Rp..

Answer / sekhar214

UPDATE RCDFMT %FIELDS(FIELD1:FIELD2)

Is This Answer Correct ?    9 Yes 0 No

How to update selected fields from pf without using update opcode. How to read all member in Rp..

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

How to update selected fields from pf without using update opcode. How to read all member in Rp..

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

How to update selected fields from pf without using update opcode. How to read all member in Rp..

Answer / sai reddy

Hi Siva,
what is the major Difference between RPG 3 and RPGLE in terms of coding...please reply me.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More RPG400 Interview Questions

how to run only 10 modules of existing N modules in service program in RPGILE ?

3 Answers   Wipro,


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


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.

1 Answers   IBM,


what is batch debug in as400?

3 Answers  


As Packed veriable store 2 digits in 1 byte and ZONE variable store 1 digit in 1 byte... Please tell me when we have to use Packed and Zone variable...?

1 Answers  


I have to change a program. This program is calling a subroutine mor than 100times within it. so will it have any performance issue? if yes than what changes i can make. Thanx for ur valuable answer.

2 Answers  


Are all these RPG/400 Interviewed Questions being asked recently? are current?

1 Answers  


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


3 members in a databasefile .how to read records from all the members?????????

4 Answers   CTS,


how do I preserve and clean the array?

0 Answers   IBM,


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

2 Answers  


How can read PF in reverse order (end to start) in CL pgm..

8 Answers   TCS,


Categories