SP.ASSIGN

If SP.ASSIGN is used within a Paragraph, it is suggested to reset the terminal to it's default setting prior to exiting the Paragraph.  The can be accomplished by executing WHICH at the end of the Paragraph.

TERM Settings

If you type TERM at TCL/XTCL, it will display values for the Terminal width (A) and number of lines (B) and settings for the Printer width (C) and number of lines (D).

To change any item, type in the following:

TERM A,B,C,D

For the A, B, C or D, you can place a value.  For example, if you want to change the width of the output for a printer, type:

TERM ,,256

You do not need to place a value for A, B or D.

If you increase the width for printing, any output in excess of 132 characters cannot be printed but is usually used for widening a report to be FTP'd to a PC and opened in Excel.  The maximum width is 1024 characters.

If a report is going to be opened in Excel, in most cases, the heading and column headings will only be necessary to appear one time at the top of the report.  The Printer page length (setting D) can be set as variable length (0 zero) so regardless of the actual page length, the system will output the report as one long page.  To alter the Printer length to variable, type:

TERM ,,,0

If any TERM settings are altered, it is suggested to reset the TERM back to its default setting of:

TERM 80,23,132,60

Paragraph Example Using SP.ASSIGN and TERM

0001 PA
0002 * MAILING LIST OF MEMBERS WITH $100,000 OR MORE ON DEPOSIT
0003 * WRITTEN BY BOB STUBBS, DATA MANAGEMENT SERVICES, 17 OCT 06
0004 CLEARPROMPTS
0005 CS
0006 DISPLAY
0007 DISPLAY MAILING LIST OF MEMBERS WITH $100,000 OR MORE ON DEPOSIT
0008 DISPLAY --------------------------------------------------------
0009 DISPLAY
0010 DISPLAY <<A,DO YOU WISH TO CONTINUE (Y/N)?>>
0011 IF <<DO YOU WISH TO CONTINUE (Y/N)?>> # 'Y' THEN GO EXIT
0012 SP.ASSIGN HS!LARGE.FUNDS
0013 TERM ,,1024,0
0014 SELECT CLIENT WITH CLASS = "0"
0015 SELECT CLIENT WITH TOT.DEP GE "100000.00" REQUIRE.SELECT
0016 LIST CLIENT GIVEN NAME ACT.ADDR1 ACT.ADDR2 ACT.CITY ACT.STATE\
0017 ACT.ZIP ACT.CNTRY TOT.DEP HEADING "MEMBERS WITH $100,000\
0018 OR MORE ON DEPOSIT 'L'AS OF 'D' 'L'PARAGRAPH NAME: LARGE.FUNDS\
0019 'L'" NI.SUP REQUIRE.SELECT LPTR
0020 TERM ,,132,60
0021 WHICH
0022 EXIT:
0023 CS

0001 First line must always be PA for Paragraphs.

0002 * designates comment line. This will not affect processing of the Paragraph. Line 0002 should contain a brief description of the Paragraph. Additional comment lines can be added anywhere within the Paragraph to provide any additional information as needed.

0003 * - Additional comment line.

0004 CLEARPROMPTS will reset the data input/output buffer which stores all data input.

0005 CS will clear the screen.

0006 DISPLAY without any text will display a blank line.

0007 DISPLAY with text will display that text.

0008 DISPLAY with text will display that text. (For style, I underline the Paragraph description.)

0009 DISPLAY without any text will display a blank line.

0010 DISPLAY with text will display that text. The text inside the << >> is prompting for input. Since the text is preceded by an A, this will place the data in the input buffer for use later and is stored using the text as the saved name.

0011 This is will test the input. If END is input, the Paragraph will go to the label EXIT and continue from that location.

0012 SP.ASSIGN HS!XXX alters the existing Banner unique name within the spooler command to LARGE.FUNDS then 'HOLDS" the report in for viewing within SP.MAINT and suppresses the printing.

0013 TERM A,B,C,D alters the terminal setting for either the screen display or output (hold file or printer). If you type TERM at TCL/XTCL, it will show you values for Terminal width (A), number of lines (B) and settings for the Printer width (C) and number of lines (D).

0014 The sentence is typed in just as it would at TCL/XTCL.

0015 The sentence is typed in just as it would at TCL/XTCL.

0016 The sentence is typed in just as it would at TCL/XTCL. To continue a recall sentence to the next line, a \ must be at the end of the line.

0017 Continuation of recall sentence. To continue a recall sentence to the next line, a \ must be at the end of the line.

0018 Continuation of recall sentence. To continue a recall sentence to the next line, a \ must be at the end of the line.

0019 Continuation of recall sentence. To continue a recall sentence to the next line, a \ must be at the end of the line.

0020 TERM A,B,C,D alters the terminal setting for either the screen display or output (hold file or printer). This is resetting the TERM setting back to its default setting.

0021 WHICH will reset the spooler setting to the terminal's default setting.

0022 Go to label. DISPLAY with text will display that text. Paragraph will exit to TCL/XTCL.

0023 CS will clear the screen.


Go To Home Page