HPE NonStop SQL/MX Error – 3168 The FOR … ACCESS clause is not allowed in a ddl-statement statement.

In this blog post, let’s learn about the error message “3168 The FOR … ACCESS clause is not allowed in a ddl-statement statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3168 The FOR … ACCESS clause is not allowed in a ddl-statement statement.

Reason for the Error

You specified a CREATE VIEW statement with the FOR … ACCESS clause, which is not supported.

Solution

Remove the FOR … ACCESS clause and resubmit