<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="reference" /> <meta name="DC.Title" content="DFT (Default) keyword in printer files" /> <meta name="abstract" content="Use the DFT keyword to specify a constant value for constant fields." /> <meta name="description" content="Use the DFT keyword to specify a constant value for constant fields." /> <meta name="DC.subject" content="DFT (Default) keyword, Default (DFT) keyword" /> <meta name="keywords" content="DFT (Default) keyword, Default (DFT) keyword" /> <meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="rzakdmstptdft" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>DFT (Default) keyword in printer files</title> </head> <body id="rzakdmstptdft"><a name="rzakdmstptdft"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">DFT (Default) keyword in printer files</h1> <div><p>Use the DFT keyword to specify a constant value for constant fields.</p> <div class="section"><p>The format of the keyword is:</p> <pre>DFT('value') 'value' DFT(X'hexadecimal-value') X'hexadecimal-value'</pre> <p>Constant values can be:</p> <ul><li>A character value, in which each character prints as you specify it. The number of characters is equal to the printed length of the field. (Within the value, two adjacent single quotation marks are printed as one.) See <a href="#rzakdmstptdft__rzakddft">example 1</a>.</li> <li>A hexadecimal value, in which two characters identify a code point in the character set. These characters print in this field (define alternate characters using DFNCHR). The printed length is half the number of characters you specify between single quotation marks. You must specify the TRNSPY keyword if you specify a hexadecimal value for DFT. See <a href="#rzakdmstptdft__constantdft">example 2</a>.</li> </ul> <p>You can specify DFT implicitly by omitting DFT and the parentheses (this is true for both character and hexadecimal values). Specify the value within single quotation marks. For hexadecimal values, you must also precede the value with an X.</p> <p>The EDTCDE and EDTWRD keywords cannot be specified with the DFT keyword.</p> <p>Option indicators are not valid for this keyword. However, they can be used to condition the constant field with which this keyword is specified, specifying the last option indicator on the same line as the field location.</p> </div> <div class="section"><h4 class="sectiontitle">Examples</h4><p id="rzakdmstptdft__rzakddft"><a name="rzakdmstptdft__rzakddft"><!-- --></a><strong>Example 1:</strong></p> <p>The following example shows how to specify DFT using character values.</p> <pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R SUPPLIES 00020A PENS 20 2 1 00030A INK 20 3 1 00040A PAPER 20 4 1 00050A 7 9DFT('ON') 00060A 8 9'ON' 00070A 00080A 01 12 1'Hotel name: 'Terrace Inn' 00100A 00110A 02 12 1'Hotel name: 'Riverview Inn' A</pre> <p>The specifications DFT('ON') and 'ON' are equivalent and show the difference between specifying DFT explicitly and implicitly.</p> <div class="p">If indicator 01 is on, this prints: <pre>Hotel name: 'Terrace Inn'</pre> </div> <div class="p">If indicator 02 is on and indicator 01 is off, this prints: <pre>Hotel name: 'Riverview Inn'</pre> </div> <p id="rzakdmstptdft__constantdft"><a name="rzakdmstptdft__constantdft"><!-- --></a><strong>Example 2:</strong></p> <p>The following example shows how to specify DFT for a constant field containing an alternate character.</p> <pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 <strong>1</strong><strong>2</strong> 00010A R RECORD DFNCHR(X'7C' X'007E813CC324817E00') 00020A <strong>3</strong>58 4DFT(X'7C') TRNSPY <strong>4</strong> 00030A +2DFT('1982') A</pre> <p>The constant field for which DFT is specified <strong>1</strong> appears on line 58, position 4. The character defined for hexadecimal 7C prints in this field. DFNCHR <strong>2</strong>, specified at the record level for this example, defines hexadecimal 7C as a copyright mark.</p> <div class="p">Here are some equivalent ways to specify the value as defined in this example <strong>3</strong>: <pre>DFT(X'7C') X'7C' DFT('©') '©'</pre> </div> <p>The TRNSPY keyword <strong>4</strong> is required when hexadecimal values are specified for DFT.</p> </div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div> </div> </div> </body> </html>