How to update only a field of a PF in an RPG program.
I don't want to update the record, only one field.
Answers were Sorted based on User's Feedback
If file FileA has fields field1, field2, field3, and we
want to write out field2 only ...
C...except..Change
OfileA...E...Change
O...............field2
Hope it will work fine.
For Free Format try out following...
Update Recformat %fields(field2);
| Is This Answer Correct ? | 33 Yes | 1 No |
Answer / kapil kumar
Use CHAIN for that record
then EVAL fld='value'
UPDATE pfrecfmt
| Is This Answer Correct ? | 1 Yes | 24 No |
i'm working on progA , in that program i want to see the userids of the users who work on this program?
i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program
Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?
How can we know running job is batch or interactive?
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
Write a program to display prime numbers between 1 to 100 using RPGLE.
1.If *HIVAL SETGT is used what opcode is used to read a record? A:READ B:READPE C:CHAIN D:READP 2.How to pass numeric parameter to the rpg pgm from the command line? 3.What keyword is used on the rpg 4 definition specification to rename a subfile in an externally definition data structure? A:RENAME B;LIKE C:EXTNAME D:EXTFLD
Can anybody tell me that why we use option(*nodebugio)in H- Spec?
Have a join logical file with more than one members with different record formats. So how can we read the different members from this file and also how we can read the different record format from the join logical?
please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?
In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening
I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?