1.what are the ARITHMETIC EXPRESSIONS IN CL PGM?
2.How to PASSING PARAMETER TO CL PGM?



1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?..

Answer / syam

A1. +,-,*,/
A2.PGM
DCL &AAA TYPE(*CHAR) LEN(10)
CALL PRGNAME PARM(&AAA)
ENDPGM

Is This Answer Correct ?    14 Yes 1 No

Post New Answer

More RPG400 Interview Questions

what was the robotech rpg?

0 Answers   IBM,


1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400

10 Answers   IBM, Tech Mahindra,


When a object will be locked & when a record will be locked? Plz explain.

2 Answers  


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


how to change the length of the field in a physicalfile?

12 Answers  






What is the length of Signature?

3 Answers   UST,


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

4 Answers   Virtusa,


What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?

2 Answers  


what is edit word and edit code

0 Answers   Cap Gemini,


Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?

4 Answers   IBM,


explain sflclr, sflend, sfldlt, and sflcsrrrn?

0 Answers   IBM,


what will happen two jobs have same name are submitted

5 Answers   CTS,


Categories