A pf containing 100 records... my query is how to display
from 11th record in the pf?
Answers were Sorted based on User's Feedback
Answer / keshar jain
We can positioned to nth record in file in CL with the help of OVRDBF command.
Synatax:
OVRDBF FILE(file-name) POSITION(*RRN 11)
This will positioned file on 11th record so RCVF command will read 11th record in file.
If you want to read with key conditioned then we can specify *KEY,*KEYA,KEYAE etc to positioned with key specified in command.
| Is This Answer Correct ? | 16 Yes | 1 No |
Answer / gowrishankar.m
using cpyf Starting position as 11
or
using CHAIN in key field giv relative record number
| Is This Answer Correct ? | 8 Yes | 3 No |
Last statement of any rpg program is lr?
what is use of self join and which cases you will use this join
Why journalling is compulsory before commitment control?
What is the difference between access path and open data path?
There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.
There is one string as A B C and wanted to display string as Shri A Shri B Shri C, how we can do this in sql? If we have around 100 values in string like this, each value should be displayed with initials as Shri.
How to read a pf in reverse(from last record to first) using cl?
what is exception and how many types of exception
What is the purpose of the chain and setll and setgt?
Last statement of any RPG pgm is LR?
how can we write LF using flatfile.
How many libraries can be there in a library list?