× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Then something else is not quite right, Sachin. Can you show the F-spec you are using?



Chaudhary, Sachin (GE Indust, ES Rail, consultant) wrote:
I think I have already tried IF with ADD mode, but it never worked at the time 
I was developing it.

Regards,
Sachin


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Booth Martin
Sent: Monday, August 21, 2006 4:04 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: How to get rid of message CPF4028 on Display Screen


Does the file already exist?  If so, Output really doesn't work good.

I believe if you change the F-Spec for that file to Input-Full with an A for adding records that your problem will go away. Or, even Update-Full, however that is not needed as you are not updating records.


My work is never guaranteed, and often not quite right, but this should work for you.



Chaudhary, Sachin (GE Indust, ES Rail, consultant) wrote:
Hi, I don't want the users to see the message, it does not matter how this file is opened, I am only writing records to this file in one of the IF conditions.

It is because of the condition code 1:
 Message . . . . :   Open of member SPDTLWRK was changed to SEQONLY(*NO).
 Cause . . . . . :   Member SPDTLWRK file SPDTLWRK in library TEST#UT2 was
   opened with the SEQONLY(*YES) parameter specified in the program or on the
   Override Database File (OVRDBF) command. However, the parameter has been
   changed to SEQONLY(*NO) because of condition 1 shown below:
     1 - The program opened member SPDTLWRK for output operations only and
   SEQONLY(*YES) was specified with the default number of records.
   SEQONLY(*YES) was changed to SEQONLY(*NO) to allow the program to handle
   duplicate key, conversion mapping, key mapping, and select or omit errors,
   or both select and omit errors at the time of the output operation.

Regards,
Sachin


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Bob Cozzi
Sent: Monday, August 21, 2006 3:23 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: How to get rid of message CPF4028 on Display Screen


Do you want to prevent it from displaying the message or do you want to prevent
the sequential opening so that the message is never generated?

-Bob Cozzi
www.iSeriesTV.com
Ask your Manager to watch iSeriesTV.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Chaudhary, Sachin (GE Indust, ES Rail,consultant)
Sent: Monday, August 21, 2006 3:04 PM
To: RPG programming on the AS400 / iSeries
Subject: How to get rid of message CPF4028 on Display Screen

Hi I am using a file in Output mode in RPG program, and at time of displaying the
screen the system shows diagnostic message CPF4028. I have tried overriding the
file to SEQONLY(*NO) in the same pgm [before opening the file in User Controlled
mode], but it does not work .
Can anyone help?

Thanks
Sachin




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.