简体   繁体   English

UniQuery LIST没有分页符

[英]UniQuery LIST without page breaks

This should be simple but it's just not working. 这应该很简单,但它不起作用。 I have a list of records that I want to display in the terminal without anything besides the list of record keys. 我有一个记录列表,我希望在终端中显示除记录键列表之外的任何内容。 No Headers, page gaps, etc. The problem is I can't get rid of the page gaps that keep chopping up my list. 没有标题,页面间隙等。问题是我无法摆脱不断砍掉我的列表的页面空白。

SORT INVENTORY HDR.SUPP COL.HDR.SUPP NO.PAGE NO.SPLIT COUNT.SUP

You need to change your TERM settings, ignore the 'type' option. 您需要更改您的TERM设置,忽略'type'选项。 Increase the TERM 'B' (HELP TERM) to the total number of records you are returning. 将TERM'B'(HELP TERM)增加到您要返回的记录总数。

For example if the report contains 100 records, you enter: 例如,如果报告包含100条记录,则输入:

: TERM [to get default settings] :TERM [获取默认设置]

: TERM 80, 100 ,132,60 :TERM 80,100,132,60

: run LIST/SORT :运行LIST / SORT

: TERM A,B,C,D [ use values from first TERM ] :TERM A,B,C,D [使用第一个TERM的值]

You need to run the term command prior to running your select. 您需要在运行select之前运行term命令。

Just in case you're trying to get this list of bare keys so you can copy/paste it somewhere else (like Excel), I'll throw out another option that may be helpful and save some scrolling: 万一你试图获取裸键列表以便你可以将其复制/粘贴到其他地方(比如Excel),我会抛弃另一个可能有用的选项并保存一些滚动:

:sort INVENTORY TO DELIM 9 /tmp/inventory.txt

Will run your command and dump the output (tab-delimited, though that's irrelevant with only one field) to a file in the tmp directory. 将运行您的命令并将输出(制表符分隔,但只与一个字段无关)转储到tmp目录中的文件。

:UDT.OPTIONS 91 ON

Is helpful if you're dumping dates, numbers or anything that needs output formatting. 如果您要转储日期,数字或任何需要输出格式的内容,这会很有帮助。

UDT Options Command reference describes that: UDT Options命令参考描述:

UDT.OPTIONS 91 U_LIST_TO_CONV affects saved queries on data that is defined in the dictionary with a conversion code. UDT.OPTIONS 91 U_LIST_TO_CONV影响对使用转换代码在字典中定义的数据的已保存查询。 For example, when a date is defined as D4, the internal date is 9611, which the conversion code translates as 04/24/94. 例如,当日期定义为D4时,内部日期为9611,转换代码转换为04/24/94。 UniData does not convert the data before it saves UniQuery results to an ASCII file. 在将UniQuery结果保存为ASCII文件之前,UniData不会转换数据。 With UDT.OPTIONS 91, you can force the conversion before UniData saves the ASCII file. 使用UDT.OPTIONS 91,您可以在UniData保存ASCII文件之前强制转换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM