Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What would be the result on writing a data record to a PF
file using the "WRITE" opcode after the SETON *ON *INLR
statment?

Answers were Sorted based on User's Feedback



What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / prabhas

It will sucessfully write the data record to a PF

Is This Answer Correct ?    17 Yes 3 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / prabhas

All files used remain opened till it executes last 'C' spec
statement

Is This Answer Correct ?    9 Yes 1 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / naveen chandra joshi

It will write the record in the database file even after LR
indicator sets on.
Program execution continues till last C specification.

Is This Answer Correct ?    3 Yes 0 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / syam

Hi Prabhas thanks....Why it is writing? Seton *On *Inlr not
closing the pf file?

Is This Answer Correct ?    4 Yes 2 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / raghavendra malwadkar

It will sucessfully write the data record to a PF and only
after executing the last record, LR indicator sets on,
hence even if you specify Seton *LR any where in the
program, the LR indicator is *ON only after executing the
last record.

Hope it suffies you concern.

Is This Answer Correct ?    5 Yes 3 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / harshad r suryawaunshi

Write statement will get executed successfully and record
will get added in the file. Program execution continues til
the last line of C specs.

Is This Answer Correct ?    3 Yes 1 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / sree

The LR indicator says, the last record in the file has
reached and hence there are no input records to process. But
this will not prevent in writing the record to file.

Please correct me if I am wrong.

Is This Answer Correct ?    0 Yes 0 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / sakshi anand

i think it will not be executed because the files is closed when we use seton lr/or the odp is closed now.

Is This Answer Correct ?    0 Yes 2 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / sakthi

all files will be closed with inlr on and we can't perform write operation on a closed file. We will get error.

Is This Answer Correct ?    0 Yes 2 No

What would be the result on writing a data record to a PF file using the "WRITE" opcode ..

Answer / gsp

The 'Write' statement has to be witten before
the Lr On statement.
Reason: All files are closed and program ends
as soon as Lr is on.

Is This Answer Correct ?    5 Yes 10 No

Post New Answer

More RPG400 Interview Questions

i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?

1 Answers   IBM,


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

6 Answers   Polaris,


suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,


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

0 Answers   IBM,


how do u find whether a record is locked or not??

4 Answers   CTS,


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,


while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue

1 Answers  


What does Implicit Open means with respect to a file ? What about the Explicit Open?..what are the major differences between these two?

1 Answers   IBM,


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

12 Answers  


How do you find whether a record is locked or not?

2 Answers  


in which journalling which attributes are necessary??/

1 Answers   CTS,


What is I90(Insure 90)?

1 Answers  


Categories