STOWM(ddname[,member][,function][,{newname|ttr}] [,{userfield|vv}][,mm][,cdate][,mdate] [,mtime][,cl][,il][,ml][,muserid])
The member argument is required for all values of function except 'I'
For PDSE data sets, any user that is connected to a member can still access their version until the connection is broken. That is, directory modifications by one user are invisible to other connected users until they disconnnect from the member and reconnect. See the Using Data Sets publication for your level of DFP or DFSMS for more information.
Note: This argument must be exactly 6 bytes long. The TTRs produced by LISTM, STOWM, and FINDM are in the proper format.
Note: If any arguments follow this argument, it is not interpreted as the user field. It will be interpreted as the ISPF version number (see next description).
When it follows one or more PUT function calls, STOWM will complete all pending write operations for the member. If the data set is open for output, STOWM will write an end-of-file marker after the records of the member. If open for update, write operations are completed, but no end-of-file marker is written.
You may use STOWM only if the file is open for output or update. If the file is open for input, close and re-open it for output or update.
Notes:
After completion of a STOWM function call, the RC and REASON variables will contain return code information:
call open 'bpam', 'outdd', 'output' call put 'outdd', 'this is a record' call stowm 'outdd', 'earl' call close 'outdd'
call open 'bpam', 'iodd', 'update' parse value findm('iodd','earl','u') with rc ttr . call stowm 'iodd', 'cathi', 'a', ttr call close 'iodd'
call open 'bpam', 'iodd', 'update' call stowm 'iodd', 'earl', 'c', 'josh' call close 'iodd'
call open 'bpam', 'iodd', 'update' parse value findm('iodd','josh','u') with, rc ttr k z c usrfld usrfld = translate(usrfld, '.', ':') call stowm 'iodd', 'josh', 'r', , usrfld call close 'iodd'
call open 'bpam', 'outdd', 'output' call stowm 'outdd', 'josh', 'd' call close 'outdd'
call open 'bpam', 'outdd', 'output' parse value date('s')||date('j')||time() with, year +4 . +6 day +3 ctime cdate = year'.'day call stowm 'outdd', 'earl', 'a', , 1, 1, cdate,, cdate, ctime, 0, 0, 0, userid() call close 'outdd'
call open 'bpam', 'outdd', 'output' call stowm 'outdd', , 'i' call close 'outdd'