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


Please Help Members By Posting Answers For Below Questions

How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1547


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?

472


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.

2253


how do you use commitment control in rpg?

734


explain sflclr, sflend, sfldlt, and sflcsrrrn?

860






What is the purpose of record level identifier?

711


what was the robotech rpg?

666


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?

484


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...?

1449


How to declare the pull button in AS/400..

1862


what is the difference between do while and do until?

683


how does the rpg element work?

698


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...

1296


How to select highest score of each subject or how to select highest income of every month?

1273


what is kids-rpg?

655