1.How to read a subfile in out put mode?
2.what are the keywords used to share same file?
3.using composite key which rpg code used?
Answers were Sorted based on User's Feedback
Answer / syam
A2. Share open data path = *Yes
A3. KLIST & KFLD in Free Format %KDS
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abhiraj
a1. by CHAIN opcode
a2 and a3 same as syam's ans
| Is This Answer Correct ? | 1 Yes | 0 No |
How do I read records from Subfile? what is the purpose of READC explain with example?
Suppose you have 3 members in a database file. How to read records from all the members without using CL (OVRDBF) i.e. Entire process should be handled exclusively in a RPG program?
Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?
In how many ways a session/device error occurs,,, and what is the remedy for it?
What are the types of identifiers?
Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?
Setps to create .csv file on IFS folder in AS/400( V4R3)....?
Suppose in CL we reach at end of file and again we have to reach from 1 record
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.
Can any body give the code for this quesition? Using the following details write C-Spec code to set Name to"AMMU LABS SYSTEM" D NAME1 S 10 INZ('AMMU') D NAME2 S 10 INZ('LABS') D NAME3 S 10 INZ('SYSTEM') D NAME S 20
In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?