Previous Topic: Performing a Sequential Read from a Pointed StartNext Topic: Coding the ADR Control Statement for a Pointed Start


Coding the KEY Control Statement for a Pointed Start

To access key-sequenced files at a specific place in the file, code the following control statements.

Pointed Start for z/OS

For z/OS, assign the external file name VSAMCTRL for the control statements:

//VSAMCTRL DD *
 KEY key-field-format-a key-value-q

Key-field-format-a is a 1-character code in column 6 that specifies the key value format:

The code...

Specifies...

C

Character

H

Hexadecimal

Key-value-q, coded in column 7 and enclosed in single quotation marks, specifies an alphanumeric or hexadecimal value of the target key.

Pointed Start for z/VSE

For z/VSE, read the control statement(s) in from SYSIPT:

5-step JCL:

// ASSGN SYSIPT,X'device'
// EXEC  CULL,SIZE=300K
 KEY key-field-format-a key-value-q

1-step JCL:

// EXEC CULPRIT,SIZE=300K
   CULPRIT PARAMETERS
/*
 KEY key-field-format-a key-value-q
/*

The size specification must be small enough to allow space allocation for VSAM modules in the GETVIS area.