Suppose in CL we reach at end of file and again we have to reach from 1 record
Answer Posted / surya
We can use POSDBF command in CL program
This command sets the record position of the database file that is opened with OPNID(XXX) to the starting position of the database file member that is currently open.
POSDBF OPNID(XXX) POSITION(*START)
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
how do you use commitment control in rpg?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
What is the purpose of record level identifier?
what was the robotech rpg?
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
How to declare the pull button in AS/400..
what is the difference between do while and do until?
how does the rpg element work?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
How to select highest score of each subject or how to select highest income of every month?
what is kids-rpg?