HiLMAs reference
Back

Input/Output instructions

Next

FREWRITE

FREWRITE numfile[,string,RECLEN=rec-length]

 

Description

This statement Rewrite (i.e. update) a previously read record of a VSAM file.

numfile is a numeric constant (from 1 to 20) used in FOPEN statement to handle the file.
string is the variable containing the record to rewrite: is not used in non-CICS environment (MVS/TSO/DOS) but is mandatory in CICS;
in non-CICS environment the rewitten record is the string variable read in the previously FREAD instruction.
rec-length is the optional record length and overrides the length of string (CICS only)

Parameter specifications

Parameter Name  Mode Type coding Remark
1 numfile Input numeric constant from 1 to 20
2 string Input String C or X contains record (mandatory in CICS)
  RECLEN= Input Integer F or H or const. overrides the length of string

Examples

 


Back Start Next
FWRITE Top FSTARTBR