How do I set LINESIZE and PAGESIZE with a substitution variable?
问题 I am trying to use a PL/SQL script in SQL*Plus to set the linesize and pagesize based on a developer input on whether a report should print in landscape or portrait orientation. If it is landscape, I want linesize 132 and pagesize 60. If it is portrait, I want 88 and 80 respectively. I am trying to use substitution variables to do so like this: DEFINE PRINT_ORIENTATION 'PORTRAIT' COLUMN LINESIZE_VALUE NOPRINT new_value LINE COLUMN PAGESIZE_VALUE NOPRINT new_value PAGE SELECT DECODE('&PRINT