Can we used ovrdbf command after the opnqry file if yes then
What will be out put of your program?
Answers were Sorted based on User's Feedback
Answer / naveen chandra joshi
No. we can not use OVRDBF command after OPNQRYF command if
we do so then program will give error as the OPNQRYF
command expects the Open Data Path to share before
processing.
I tested the program and then posting the answer.
Regards,
Naveen,
9891501280.
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / ss
OVRDBF command before OPNQRYF because it will make the ODP *yes.
If the ODP is *yes then only the changes will be reflected in next calling program.
If the ODP is *no then there is no use of opnqry because data will not be reflected in next calling program.
| Is This Answer Correct ? | 0 Yes | 0 No |
how do u track msg in cl pgm???
Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?
suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?
1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.
How to read a record from file where there is multiple record occurrence is available?
How to read alternative records in a pf by using rpg?
how to run only 10 modules of existing N modules in service program in RPGILE ?
Why we cannot call a service program? If I add a PEP can i call the service program?
Q:HI friends accually ihave one problem plesase let me know the alternate code of this code. Related field description of code: Add a field, CALvsPRD, "Calendar Day Starts Before/After Production Day" to the parameter set WRKORDER which accepts values 'A' or 'B' o B = Calendar Day Starts Before Production Day o A = Calendar Day Starts After Production Day o Any other value indicates the production and calendar dates are always the same. code: Automatic Execution Of *INZSR Subroutine /Z01 * retrieves WRKORDER field values. /Z01 * Calculate default Production Date and return it to caller. /Z01 * Production date defaults to system date /Z01 C Eval P@Pdate = %DATE() /Z01 * unless Calendar date starts Before PDN(production) date and /Z01 * system time is before PDN Start Time then /Z01 * PDN date is yesterday. /Z01 C If W@CALvsPRD = 'B' and /Z01 C %TIME() < %TIME (W@Strtime) /Z01 C Eval P@Pdate -= %Day(1) /Z01 * unless Calendar date starts After PDN date and /Z01 * system time is *GE PDN(production) Start Time then /Z01 * PDN date is tomorrow. /Z01 C ElseIf W@CALvsPRD = 'A' and W@Strtime > *Zero and /Z01 C %TIME() >= %TIME (W@STrtime) /Z01 C Eval P@Pdate += %Day(1) /Z01 C EndIf /Z01 C Eval *InLr = *On
wat is meant by hidden field , why it is used?
Delete FileName at first statement in RPG.
how can we can we the data decimal error?how can we open such file in support