`
linsl
  • 浏览: 70639 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

File type modifiers for export

 
阅读更多
Table 20. Valid file type modifiers for export: All file formats Modifier Description
lobsinfile lob-path specifies the path to the files containing LOB data.

Each path contains at least one file that contains at least one LOB pointed to by a Lob Location Specifier (LLS) in the data file. The LLS is a string representation of the location of a LOB in a file stored in the LOB file path. The format of an LLS isfilename.ext.nnn.mmm/, where filename.ext is the name of the file that contains the LOB, nnn is the offset in bytes of the LOB within the file, and mmm is the length of the LOB in bytes. For example, if the string db2exp.001.123.456/ is stored in the data file, the LOB is located at offset 123 in the file db2exp.001, and is 456 bytes long.

|If you specify the "lobsinfile" modifier when using EXPORT, the LOB data |is placed in the locations specified by the LOBS TO clause. Otherwise the |LOB data is sent to the current working directory. The LOBS TO clause specifies one |or more paths to directories in which the LOB files are to be stored. There |will be at least one file per LOB path, and each file will contain at least|one LOB.

To indicate a null LOB , enter the size as -1. If the size is specified as 0, it is treated as a 0 length LOB. For null LOBS with length of -1, the offset and the file name are ignored. For example, the LLS of a null LOB might be db2exp.001.7.-1/.

Table 21. Valid file type modifiers for export: DEL (delimited ASCII) file format Modifier Description
chardelx x is a single character string delimiter. The default value is a double quotation mark ("). The specified character is used in place of double quotation marks to enclose a character string.2 If you want to explicitly specify the double quotation mark as the character string delimiter, it should be specified as follows:
   modified by chardel"" 

The single quotation mark (') can also be specified as a character string delimiter as follows:

   modified by chardel'' 
codepage=x x is an ASCII character string. The value is interpreted as the code page of the data in the output data set. Converts character data to this code page from the application code page during the export operation.

For pure DBCS (graphic), mixed DBCS, and EUC, delimiters are restricted to the range of x00 to x3F, inclusive.

Note:
The codepage modifier cannot be used with the lobsinfile modifier.
coldelx x is a single character column delimiter. The default value is a comma (,). The specified character is used in place of a comma to signal the end of a column.2

In the following example, coldel; causes the export utility to interpret any semicolon (;) it encounters as a column delimiter:

   db2 "export to temp of del modified by coldel;
      select * from staff where dept = 20" 
datesiso Date format. Causes all date data values to be exported in ISO format ("YYYY-MM-DD").3
decplusblank Plus sign character. Causes positive decimal values to be prefixed with a blank space instead of a plus sign (+). The default action is to prefix positive decimal values with a plus sign.
decptx x is a single character substitute for the period as a decimal point character. The default value is a period (.). The specified character is used in place of a period as a decimal point character.2
dldelx x is a single character DATALINK delimiter. The default value is a semicolon (;). The specified character is used in place of a semicolon as the inter-field separator for a DATALINK value. It is needed because a DATALINK value can have more than one sub-value. 2
Note:
x must not be the same character specified as the row, column, or character string delimiter.
2nochardel 2Column data will not be surrounded by character delimiters. This option should 2not be specified if the data is intended to be imported or loaded using DB2. 2It is provided to support vendor data files that do not have character delimiters. 2Improper usage might result in data loss or corruption.22

This option cannot be specified with chardelx or nodoubledel. 2These are mutually exclusive options.

nodoubledel Suppresses recognition of double character delimiters.2
3striplzeros 3Removes the leading zeros from all exported decimal columns.33

Consider the following example:3

3
   db2 create table decimalTable ( c1 decimal( 31, 2 ) )
3    db2 insert into decimalTable values ( 1.1 )
3    
3    db2 export to data of del select * from decimalTable
3     
3    db2 export to data of del modified by STRIPLZEROS 
3       select * from decimalTable 

3In the first export operation, the content of the exported file data will be 3+00000000000000000000000000001.10. In the second operation, which is identical to the 3first except for the striplzeros modifier, the content of the exported file data will be +1.10.

2timestampformat="x" 2x is the format of the time stamp in the source 2file.4 Valid time stamp elements are:22
  YYYY   - Year (four digits ranging from 0000 - 9999)
2   M      - Month (one or two digits ranging from 1 - 12)
2   MM     - Month (two digits ranging from 01 - 12;
2               mutually exclusive with M and MMM)
2   MMM    - Month (three-letter case-insensitive abbreviation for 
2               the month name; mutually exclusive with M and MM)              
2   D      - Day (one or two digits ranging from 1 - 31)
2   DD     - Day (two digits ranging from 1 - 31; mutually exclusive with D)
2   DDD    - Day of the year (three digits ranging from 001 - 366; 
2               mutually exclusive with other day or month elements)
2   H      - Hour (one or two digits ranging from 0 - 12
2               for a 12 hour system, and 0 - 24 for a 24 hour system)
2   HH     - Hour (two digits ranging from 0 - 12 
2               for a 12 hour system, and 0 - 24 for a 24 hour system; 
2               mutually exclusive with H)
2   M      - Minute (one or two digits ranging from 0 - 59)
2   MM     - Minute (two digits ranging from 0 - 59;
2               mutually exclusive with M, minute)
2   S      - Second (one or two digits ranging from 0 - 59)
2   SS     - Second (two digits ranging from 0 - 59;
2               mutually exclusive with S)
2   SSSSS  - Second of the day after midnight (5 digits
2               ranging from 00000 - 86399; mutually
2               exclusive with other time elements)
2   UUUUUU - Microsecond (6 digits ranging from 000000 - 999999; 
2               mutually exclusive with all other microsecond elements)
2   UUUUU  - Microsecond (5 digits ranging  from 00000 - 99999,  
2               maps to range from 000000 - 999990; 
2               mutually exclusive with all other microseond elements)
2   UUUU   - Microsecond (4 digits ranging from 0000 - 9999, 
2               maps to range from 000000 - 999900; 
2               mutually exclusive with all other microseond elements)
2   UUU    - Microsecond (3 digits ranging from 000 - 999, 
2               maps to range from 000000 - 999000; 
2               mutually exclusive with all other microseond elements)
2   UU     - Microsecond (2 digits ranging from 00 - 99, 
2               maps to range from 000000 - 990000; 
2               mutually exclusive with all other microseond elements)
2   U      - Microsecond (1 digit ranging from 0 - 9, 
2               maps to range from 000000 - 900000; 
2               mutually exclusive with all other microseond elements)
2   TT     - Meridian indicator (AM or PM) 
22

Following is an example of a time stamp format:2

2
   "YYYY/MM/DD HH:MM:SS.UUUUUU" 
22

The MMM element will produce the following values: 2'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 2and 'Dec'. 'Jan' is equal to month 1, and 'Dec' is equal to month 12.

22

The following example illustrates how to export data containing user-defined time stamp 2formats from a table called 'schedule':2

2
   db2 export to delfile2 of del
2       modified by timestampformat="yyyy.mm.dd hh:mm tt"
2       select * from schedule 

Table 22. Valid file type modifiers for export: WSF file format Modifier Description
1 Creates a WSF file that is compatible with Lotus 1-2-3 Release 1, or Lotus 1-2-3 Release 1a.5 This is the default.
2 Creates a WSF file that is compatible with Lotus Symphony Release 1.0.5
3 Creates a WSF file that is compatible with Lotus 1-2-3 Version 2, or Lotus Symphony Release 1.1.5
4 Creates a WSF file containing DBCS characters.

Notes:
  1. The export utility does not issue a warning if an attempt is made to use unsupported file types with the MODIFIED BY option. If this is attempted, the export operation fails, and an error code is returned.
  2. Delimiter restrictions for moving data lists restrictions that apply to the characters that can be used as delimiter overrides.
  3. The export utility normally writes
    • date data in YYYYMMDD format
    • char(date) data in "YYYY-MM-DD" format
    • time data in "HH.MM.SS" format
    • time stamp data in "YYYY-MM-DD-HH. MM.SS.uuuuuu" format
    Data contained in any datetime columns specified in the SELECT statement for the export operation will also be in these formats.
  4. 2For time stamp formats, care must be taken to avoid ambiguity 2between the month and the minute descriptors, since they both use the letter 2M. A month field must be adjacent to other date fields. A minute field must 2be adjacent to other time fields. Following are some ambiguous time stamp 2formats:22
       "M" (could be a month, or a minute)
    2    "M:M" (Which is which?)
    2    "M:YYYY:M" (Both are interpreted as month.)
    2    "S:M:YYYY" (adjacent to both a time value and a date value) 
    In ambiguous 2cases, the utility will report an error message, and the operation will fail.22

    Following are some unambiguous time stamp formats:2

    2
       "M:YYYY" (Month)
    2    "S:M" (Minute)
    2    "M:YYYY:S:M" (Month....Minute)
    2    "M:H:YYYY:M:D" (Minute....Month) 
  5. These files can also be directed to a specific product by specifying an L for Lotus 1-2-3, or an S for Symphony in the filetype-mod parameter string. Only one value or product designator can be specified.
分享到:
评论

相关推荐

    Java Class and Method Modifiers

    Java Class and Method Modifiers

    gun tar for windows

    Operation modifiers: -W, --verify attempt to verify the archive after writing it --remove-files remove files after adding them to the archive -k, --keep-old-files don't overwrite existing files ...

    Scala for the Impatient 2nd (完整英文第二版 带书签)

    18.3 Bounds for Type Variables 266 18.4 View Bounds 268 18.5 Context Bounds 268 18.6 The ClassTag Context Bound 269 18.7 Multiple Bounds 269 18.8 Type Constraints L3 269 18.9 Variance 271 18.10 Co- ...

    perl-Class-Method-Modifiers-2.12-8.el8.noarch(1).rpm

    官方离线安装包,亲测可用

    modifiers:Ruby 方法修饰符

    modifiers是方法修饰符的集合,也是制作更多的方法。 显然,方法修饰符会修改方法。 具体来说,在 Ruby 术语中,它们是类方法,它们: 取一个符号参数,它命名同一个类的实例方法,和返回相同的符号,但导致对命名...

    Compose-Modifiers-Playground

    Compose Modifiers Playground IDEA插件的源代码 通过此交互式游乐场了解如何使用Jetpack Compose修改器! 可用的修饰符: 背景 边境 夹子 FillMaxHeight FillMaxSize FillMaxWidth 抵消 填充 旋转 规模 阴影 ...

    自定义快捷方式

    KeyModifiers.Shift也可以直接使用数字4来表示。 RegisterHotKey(Handle, 100, KeyModifiers.Shift, Keys.S); //注册热键Ctrl+B,Id号为101。KeyModifiers.Ctrl也可以直接使用数字2来表示。 RegisterHotKey...

    Debugging with GDB --2002年5.11

    s Letting Readline Type For You s Keyboard Macros s Some Miscellaneous Commands r Readline vi Mode Using History Interactively r History Expansion s Event Designators s Word Designators s Modifiers ...

    SystemVerilog for Design(2nd edition)

    1.2 Key SystemVerilog enhancements for hardware design...................................................5 1.3 Summary ....................................................................................

    Rokon_Using_Modifiers

    Rokon框架中的box2d,在pudn上下载下来的,好资源不要浪费了,与大家分享一下。另外 ,小弟最近资源分比较吃紧,收个3分吧,谢谢~~

    Blender批量网格模型加效果器插件 Synchronize Modifiers V2.2.0.zip

    Synced Modifiers 是一个 Blender 插件,允许您同时向多个对象添加修改器,并使用驱动程序自动同步所有修改器。 如果你想要免费的blender插件、模型等可以看看这个blender资源库:...

    plover-modifiers:用于创建modifiers.json词典的脚本,以解决不支持修饰符的Plover的问题

    用于创建modifiers.json词典的脚本,以方便修饰符。 用法 编辑make-modifiers.py文件,然后将所需的键添加到hotkeys变量中。 例如,将["KH-FG", "grave"],到hotkeys数组中,以创建⌘ `切换窗口的快捷方式。 另请...

    ember-gesture-modifiers:Ember插件,可将手势用作修饰符

    ember install ember-gesture-modifiers 用法 当前仅提供“平移”修改器。 将来会添加更多手势。 平移修饰符 论点 onPanStart-启动平底锅时触发的钩子 onPan-在平底锅更新时触发钩子 onPanEnd-平底锅结束时触发的...

    swing文件拖拽

    (int) raPath.getHeight(), BufferedImage.TYPE_INT_ARGB_PRE); Graphics2D g2 = ghostImage.createGraphics(); // Ask the cell renderer to paint itself into the BufferedImage g2.setComposite...

    StyleCop(Microsoft Source Analysis for C#)

    Microsoft Source Analysis for C#是微软内部代码检查工具。能够帮助项目团队执行一系列常用的源代码格式规范,这些规范是关于如何开发布局规整、易读、易维护并且文档良好的优雅代码的。 这个工具包含了一些最佳...

    Advanced-Modifiers:扩展了您可以在 Exp 中定义价格修饰符的方式

    此软件包未在积极开发中,不提供任何支持 高级修饰符 扩展了您可以在 Exp:resso 的商店模块中定义价格修饰符的方式。 执照 麻省理工学院许可证 (MIT) 版权所有 (c) 2014 Jeremy Worboys 特此授予任何人免费获得本...

    Turbo C++ 3.0[DISK]

    same media type for the backup disks. To start the installation, change your current drive to the one that has the install program on it and type INSTALL. You will be given instructions in a box ...

    Turbo C++ 3.00[DISK]

    same media type for the backup disks. To start the installation, change your current drive to the one that has the install program on it and type INSTALL. You will be given instructions in a box ...

    jsx-event-modifiers-一个Babel插件,它向JSX添加类似于Vue模板的事件修饰符。-Vue.js开发

    此babel插件在JSX中添加了一些语法糖。 ... 用法:npm我babel-plugin-jsx-event-modifiers -D或yarn添加...[” jsx-event-modifiers“,” transform-vue-jsx“]}事件修饰符示例:export default {render(){return

Global site tag (gtag.js) - Google Analytics