Write the subfile logic program for the given concept. Load
the data to the subfile
depends upon the designation where designation is not a
key field?
Answers were Sorted based on User's Feedback
Answer / shalini
we can also use scan wilth if logic :
designation name scan subfile record formatname var1
if var1=1
eval in01=*on
write pf record format name
Is This Answer Correct ? | 0 Yes | 1 No |
The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?
How to set on/off a group of indicators in a single statement?
i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.
are there any useful c runtime apis that I can call from rpg iv?
How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?
How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?
what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
How to search particular records from the database file in rpg?
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
Delete FileName at first statement in RPG.
can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E
Can we found a record existance in a file w/o reading the file?
6 Answers Traitsys Technologies,