SSH Reference Manual
For structured files the file-attributes list is as follows:
The [[filetype],[filecode],[primary],[secondary],[maxextents],
[record-len],[pri-key-len],[key-offset],[index-blk-len ]]
The file attributes, which must be specified exactly in the order shown above, are:
• filecode – the file code (integer from 0 through 32767)
• primary – primary extent size in pages (integer from 1 through 65535)
• secondary – secondary extent size in pages (integer from 1 through 65535)
• maxextents – maximum number of extents (integer from 1 through 978)
• filetype – file type indicator, e for an entry-sequenced file, k for a key-sequenced file and r for a relative file
• record-len – length of the records in a structured file
• pri-key-len – primary key length in a structured file
• key-offset – key offset in a structured file
• index-blk-len – index block length in a structured file
Examples:
• "get txe txe,700": will create a code 700 file
• "get bigfile bigfile,0,500,500,950”: will create a file with ext (500,500) and maxextents 950
• "get keyseq keyseq,k,0,2,2,500,255,100,0,2048": will create a keysequenced file with ext(2,2), maxextents 500,
recordlen 255, keylen 100, keyoff 0, blocklen 2048
• "get relative relative,r": will create a relative file
• "get entryseq entryseq,e": will create an entry sequenced file
• "get ascii editfile,101": will create a guardian edit file
• "put txe txe,700": will create a code 700 file
• "put bigfile bigfile,0,500,500,950": will create a file with ext (500,500) and maxextents 950
• "put keyseq keyseq,k,0,2,2,500,255,100,0,2048": will create a keysequenced file with ext(2,2), maxextents 500,
recordlen 255, keylen 100, keyoff 0, blocklen 2048
• "put relative relative,r:" will create a relative file
• "put entryseq entryseq,e": will create an entry sequenced file
• "put ascii editfile,101": will create a guardian edit file
• "put bigedit bigedit,101,200,300,978": will create an edit file with ext (200,300) and maxextents 978
Refer to the TCP/IP Applications and Utilities User Guide, chapter "Communicating with the FTP Server", section
"Transferring Structured Files" for a detailed description of this extended syntax.
The extended syntax can also be used in SCP commands.
Transfer Modes for Structured Guardian Files
The previous section described how to specify Guardian file attributes. This section introduce transfer modes, i.e.
different ways to transfer structured files.
Per default, each logical record of a structured file is read and an end-of-record delimiter is added: LF ("\n") before the
record is transferred. This transfer mode (delimited record transfer mode) corresponds to the FTP ASCII transfer of
234 • SSH and SFTP Client Reference HP NonStop SSH Reference Manual