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


SMF record layout for FTP client calls

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

The SMF record written by FTP client calls has the format Table 1.

Table 1. FTP client 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 client data  
24(x'18') SMFFTCCM 4 EBCDIC FTP subcommand
APPE
Append
RETR
Retrieve
STOR
Store
28(x'1C') SMFFTCCY 4 EBCDIC Value of the reply to the FTP command
32(x'20') SMFFTCSA 4 Binary Local (client) IP address (IPv4) or –1 for IPv6
36(x'24') SMFFTCSL 4 Binary Remote (server) IP address (IPv4) or –1 for IPv6
40(x'28') SMFFTCCP 2 Binary Local port
42(x'2A') SMFFTCCF 2 Binary Remote port
44(x'2C')   4   Reserved
48(x'30') SMFFTCSU 8 EBCDIC Remote user ID
56(x'38') SMFFTCFM 1 EBCDIC Data format:
A
ASCII
E
EBCDIC
I
Image (binary)
B
Double-byte
U
UCS-2
57(x'39') SMFFTCMO 1 EBCDIC Transfer mode:
C
Compressed data
S
Stream data
B
Block data
58(x'3A') SMFFTCST 1 EBCDIC Structure:
F
File
R
Record
59(x'3B') SMFFTCDT 1 EBCDIC Data set type:
P
Partitioned
S
Sequential
H
z/OS® UNIX
60(x'3C') SMFFTCRS 4 Binary Start time of transmission, if applicable, in hundredths of seconds.
64(x'40') SMFFTCRE 4 Binary End time of transmission
68(x'44') SMFFTCBC 4 Binary Byte count, if applicable
72(x'48') SMFFTCXD 1 EBCDIC FTP ID:
C
Client
73(x'49')   3   Reserved
76(x'4C') SMFFTCSN 44 EBCDIC Local data set name or PDS name (for z/OS UNIX file names, only the first 44 bytes are included).
120(x'78') SMFFTCEM 8 EBCDIC Member name for PDS
128(x'80')   60   Reserved
188(x'BC') SMFFTCTC 8 EBCDIC User ID of the FTP user
196(x'C4') SMFFTCHN 8 EBCDIC Host ID
204(x'CC') SMFFTCF1 2 Binary Offset to the first z/OS UNIX file name field
206(x'CE') SMFFTCF2 2 Binary Offset to the second z/OS UNIX file name field
208(x'D0') SMFFTCYF 8 Floating point Hex Bytes transferred counter. The leftmost byte is an exponent, and other seven bytes are significant bytes.
216(x'D8') SMFFTCIG 4 Binary Bytes transferred, 4 GB increments. Increments with every 4 GBs of data transfer, starting from 0.

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