# PN5_60694

Updated: 1/18/2022, 5:31:44 PM
Created: 1/18/2022, 5:31:44 PM
Last Updated By: dependabot[bot]
Read Time: 2 minute(s)

# Description

Spooler: The SETPTR banner does not persist after being set by a previous SETPTR

# Previous Release Behavior

When a banner was specified in a SETPTR command then it did not persist to subsequent SETPTR commands, e.g.

jsh home ~ -->SETPTR ,132,62,0,0,3,AT FILE,BANNER wibble
Unit Number   :0
Page Width    :132
Page Depth    :62
Top Margin    :0
Bottom Margin :0
Print mode    : 3 - Output to HOLD file ( wibble )

Default spool banner : "wibble"
Destination printer  : $JBCRELEASEDIR%stmp%s%q_%j.txt
Initial Job State    : HOLD

jsh home ~ -->SETPTR ,80,25,0,0,3
Unit Number   :0
Page Width    :80
Page Depth    :25
Top Margin    :0
Bottom Margin :0
Print mode    : 3 - Output to HOLD file ( P#0000 )

Default spool banner : "P#0000"
Destination printer  : $JBCRELEASEDIR%stmp%s%q_%j.txt
Initial Job State    : HOLD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

In the above example, the banner was reset to the default P#0000.

The banner should have been kept as wibble, which is the default behavior on platforms that support the SETPTR command.

# Current Release Behavior

Any time a banner is used with SETPTR then it uses that banner. However, if the previous SETPTR specified a banner and a one is NOT specified with the current SETPTR then we pick up the existing banner unless the SETPTR command used the AT printer option.

The SP-ASSIGN command unconditially resets the BANNER to its default of P#0000.

e.g.

jsh home ~ -->SETPTR ,132,62,0,0,3,AT FILE,BANNER wibble
Unit Number   :0
Page Width    :132
Page Depth    :62
Top Margin    :0
Bottom Margin :0
Print mode    : 3 - Output to HOLD file ( wibble )

Default spool banner : "wibble"
Destination printer  : /home/danielk/temp/file.txt
Initial Job State    : HOLD

jsh home ~ -->SETPTR ,80,25,0,0,3
Unit Number   :0
Page Width    :80
Page Depth    :25
Top Margin    :0
Bottom Margin :0
Print mode    : 3 - Output to HOLD file ( wibble )

Default spool banner : "wibble"
Destination printer  : /home/danielk/temp/file.txt
Initial Job State    : HOLD

jsh home ~ -->SP-ASSIGN
jsh home ~ -->SETPTR ?
Unit Number   :0
Page Width    :132
Page Depth    :64
Top Margin    :3
Bottom Margin :3
Print mode    : 1 - Spooled Output

Default spool banner : "P#0000"
Destination printer  : /dev/lp0
Initial Job State    : PRINT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

Back to jBASE 5.7.0 Release Notes