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 |
How would display prime numbers using CL program?
1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?
how to display all the members records in a physical file without using ovrdbf?
Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.
What is the RPG cycle?
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
What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???
wat is meant by hidden field , why it is used?
what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?
WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?
wat is the difference between array and multiple occurence data structure?
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?