z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


FTP server Type 118 SMF record layout

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

The Type 118 SMF record written by the FTP server has the format shown in Table 1.

Table 1. FTP server Type 118 SMF record format
Offset Name Length Format Description
0(x'0') SMFHEADR 24   Standard SMF header
4(x'4') SMFHDFLG 1 Binary Record flag (set to 66, or x'42')
5(x'5') SMFHDTYP 1 Binary Record type (set to 118, or x'76')
22(x'16') SMFHDSUB 2 Binary Record subtype
FTP server data  
24(x'18') SMFFTPCM 4 EBCDIC FTP subcommand
APPE
Append
DELE
Delete
LOGN
Login
REN
Rename
RETR
Retrieve
STOR
Store
STOU
Store unique
28(x'1C') SMFFTPTY 4 EBCDIC FTP file type (SEQ, JES, SQL)
32(x'20') SMFFTPSA 4 Binary Remote (client) IP address (IPv4) or –1 for IPv6
36(x'24') SMFFTPSL 4 Binary Local (server) IP address (IPv4) or –1 for IPv6
40(x'28')   8   Reserved
48(x'30') SMFFTPSU 8 EBCDIC Local user ID
56(x'38') SMFFTPFM 1 EBCDIC Data format
A
ASCII
E
EBICIDIC
I
Image (binary)
B
Double-byte
U
USC-2
57(x'39') SMFFTPMO 1 EBCDIC Mode
S
Stream
B
Block
C
Compressed
58(x'3A') SMFFTPST 1 EBCDIC Structure
F
File
R
Record
59(x'3B') SMFFTPDT 1 EBCDIC Data set type
P
PDS
S
Sequential
H
z/OS® UNIX
60(x'3C') SMFFTTRS 4 Binary Start time of transmission (See Note)
64(x'40') SMFFTTRE 4 Binary End time of transmission
68(x'44') SMFFTTBC 4 Binary Byte count of transmission
72(x'48') SMFFTPXD 1 EBCDIC FTP ID
S
Server
73(x'49') SMFFTSLR 3 EBCDIC Last reply sent to the client from the FTP server
76(x'4C') SMFFTDSN 44 EBCDIC User ID/Data set name

For LOGN records, this is the user ID of the failed login attempt; otherwise, this is the data set name, or up to the first 44 bytes of the z/OS UNIX file name.

120(x'78') SMFFTMEM 8 EBCDIC Member name of PDS
128(x'80')   8   Reserved
136(x'88') SMFFTDS2 44 EBCDIC Second data set name, if needed (for example, for REN subcommands). For z/OS UNIX files, up to the first 44 bytes of the z/OS UNIX file name.
180(x'B4') SMFFTMM2 8 EBCDIC Second member name, if needed (for example, REN subcommands involving PDS files).
188(x'BC') SMFFTSTC 8 EBCDIC Started task qualifier
196(x'C4') SMFFTHST 8 EBCDIC TCP/IP host name
204(x'CC') SMFFTSRP 2 Binary Remote (client) port number
206(x'CE') SMFFTSLP 2 Binary Local (server) port number
208(x'D0') SMFFTOF1 2 Binary Offset to the first z/OS UNIX file name field
210(x'D2') SMFFTOF2 2 Binary Offset to the second z/OS UNIX file name field
212(x'D4') SMFFTBYF 8 Floating point Hex Bytes transferred counter. The leftmost byte is an exponent, and other seven bytes are significant bytes.
220(x'DC') SMFFTGIG 4 Binary Bytes transferred, 4 GB increments. Increments with every 4 GB of data transfer, starting from 0.
Note: The start time of the transmission might be greater than the end time when the transmission began on the previous day.

Two variable-length fields at the end of the record contain z/OS UNIX file names. The variable-length z/OS UNIX name fields have the format shown in Table 2.

Table 2. z/OS UNIX file name (variable length fields appended to end of FTP server record)
Offset Name Length Format Description
0(x'0')   2 Binary Length of the z/OS UNIX file name
2(x'2')   n EBCDIC z/OS UNIX file name (maximum length is 1023 bytes)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014