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 |
what is the difference between the procedure and module in ILERPG?
What is ment by record level identifier?
What are different ways to pass data between programs and which one is the efficient way?
Can we used ovrdbf command after the opnqry file if yes then What will be out put of your program?
1.What is referential Integrity? 2.What is Foreign Key? 3.What is Transfer Control? 4.What is Free format?
i have a file with the values 10, 20, 30, 40, if am setll with the value 25 then readp, so what it will return?
How to handle duplicate error handling in RPG?
wat is meant by hidden field , why it is used?
This is my Physical file 'EMPS' existing in library "TAMIL1" and its record format is 'EMPRCD" a)its source is R EMPRCD ENO 4 0 ENAME 10 EADD 10 b)The records present in EMPS are as follows ENO ENAME EADD 0001 tamil coimbatore 0002 kumar bangalore 0003 sunder bangalore 0004 arunkumar chennai 0005 pandi hyderabad 0006 santhosh hyderabad 0007 sasi salem 0008 kalai chennai 0009 suresh hyderabad 0010 vijay bangalore 0011 Arul chennai 0012 velu chennai 0013 khan bangalore 0014 praba chennai 0015 praba.p coimbatore 0016 anand ooty 0017 raja erode 0018 sankar erode 0019 vadivel namakkal 0020 anbu chennai 0021 Ajith mumabi c)now i want to select the 'ENAME' field records starting with 'S' for that i have created a RPG program its source code is PGM DCLF FILE(TAMIL1/EMPS) DCL VAR(&MYENO) TYPE(*CHAR) LEN(4) OVRDBF FILE(EMPS) SHARE(*YES) OPNQRYF FILE((TAMIL1/EMPS)) QRYSLT('ENAME *EQ %WLDCRD("S *")') READ: RCVF RCDFMT(EMPRCD) MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(END)) CHGVAR VAR(&MYENO) VALUE(&ENO) SNDUSRMSG MSG(&MYENO) SNDUSRMSG MSG(&ENAME) SNDUSRMSG MSG(&EADD) GOTO READ END: CLOF OPNID(EMPS) DLTOVR FILE(EMPS) ENDPGM Is this coding correct sir,the program gets compiled,and if i call it it says query running but records are not displayed.please help me out
how do I do concatenation in rpg iv, like I do in cl?
Can anybody tell me that why we use option(*nodebugio)in H- Spec?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...