alok kumar


{ City } kolkata
< Country > india
* Profession * programmer analyst
User No # 101976
Total Questions Posted # 1
Total Answers Posted # 6

Total Answers Posted for My Questions # 5
Total Views for My Questions # 13557

Users Marked my Answers as Correct # 25
Users Marked my Answers as Wrong # 4
Questions / { alok kumar }
Questions Answers Category Views Company eMail

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?

CitiGroup, Symphony,

5 RPG400 13557




Answers / { alok kumar }

Question { Polaris, 13552 }

difference between
1:%found and %equal built function in detail with example .


Answer

%Found is used with Chain to check the existence of record
the values are fetched if record exist.
While %Equal is used with Setll or Setgt to check the existence of record, values are not fetched in this case

Is This Answer Correct ?    11 Yes 1 No

Question { TCS, 9936 }

i hav 2 logical files(L1,L2) both r derived from one physical
file(P1). how can i use both the logical files in one RPG
program? if yes what i have to d.


Answer

We need to rename the rocord format of atleast one logical file so that program will recognize the both files.

Prefix the fields is not really required (program will be compiled without prefix).

Is This Answer Correct ?    1 Yes 0 No


Question { 3785 }

how do you turn off indicators 50 through 59 in only one operation


Answer

you can use below opcode for this

Movea '0000000000' *in(50)

Is This Answer Correct ?    5 Yes 1 No

Question { Symphony, 13557 }

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?


Answer

by using POSDBF command

Is This Answer Correct ?    4 Yes 2 No

Question { Symphony, 13557 }

I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?


Answer

Yes sarath you are right, but in that case we need two commands ovrdbf and dltovr, and if we are repeating this scenerio two or three time thenut will be complex to handle.

Youranswer is right too.

Is This Answer Correct ?    1 Yes 0 No

Question { ISE, 3584 }

I have to execute 12000 CL Commands one by one..
So, I have created a file called COMMAND.
This file has only 1 field called STRING.
This file had 12000 records, and all these records are CL Commands (ex: CALL PGM(PGM1)), etc)
I have written a CL which will read all the record and do sbmjob..
But it is not working...
Plz help me to exexute all these 12000 commands..


Answer

Use QCMDEXC command to execute the string from file.
Pass the string from file to QCMDEXC command.

Is This Answer Correct ?    3 Yes 0 No