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 |
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
can i use UPDDTA command in rpg program in which contains a file
what do you mean by an input subfile, what are the keywords required?
2. Which of the following statement(s) explains the difference(s) between the /INCLUDE and ICOPY directives? a.) No difference, they function the same b.) ACOPY cannot be used as a conditional directive c.) IINCLUDE files cannot contain embedded SQL d.) Nesting /TNCLUDE directives is not allowed
Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?
how can we know running job is batch or intractive ? i need all the possibilites.........plz help me
How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?
I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this
Can someone tell me tell me what is meant by message wait...?
Suppose I have 3 jobs a b and c. I want to submit b after successful completion of a and want to submit c after successful completion of b. Without using job scheduler or job queue, how can I do that through cl program?
Can you copy the records created by the OPNQRYF to other files and how?
steps involved in debugging and types of debugging modes?