ASNA Visual RPG® Classic Programming Considerations


Contents

Error Handling

New Range Opcodes

Considerations for Adapting Existing Applications to DSS

Not Implemented Yet

Other Considerations

 

 


Error Handling

Strong consideration should be given to Visual RPG Error Indicators when performing I/O operations as they could be turned on now for reasons not present before.  For instance, when the Chain opcode returned an error, the cause was commonly assumed to be that the record was busy.  With DSS, error indicators can be turned on for various reasons such as the use of the *NOLOCK option on I/O operations.  (See Locking considerations in the DG400 vs. DSS document)

New Error Conditions under DSS

The following situations will cause the error indicator to be set on.

When a file is opened for *Arrival access, commands such as Chain, Setll, etc, will cause an error condition.

Any I/O operations that make use of the *NOLOCK option when working with files opened for update will cause an error condition.

To assist in finding areas in code that will potentially cause an error, a new IDE option is added to give warnings for invalid operations for DSS. This option is located in the “Compiler” Tab of the Project >Settings menu option.

New Range Opcodes

New I/O op codes provide better performance when working with large files.

Considerations for Adapting Existing Applications to DSS

The old syntax of RNMFMT(OldFormatName,NewFormatName) is not needed.

Not Implemented Yet

Other Considerations

It is recommended that you do not use ADBFEDIT to browse files that are not indexed because of the inability to scroll within the file.  These types of files can be viewed with SQL Server’s Enterprise Manager.

 

   04/29/2007          © 2007. Amalgamated Software of North America. All rights reserved.