HELP: FLAM archive record update parameter TYPE: OBJECT SYNTAX: FLAM(DECRYPT/IMPORT.{},MEMBER['str'/STREAM/DUMMY...],EXCLUDE='str',MATCH[{}...])
This object defines how the FLAM archive will be open for record update. If the archive is encrypted, the decryption parameters must be specified. You can then use the member list of wildcards and the exclude members to define which members you want to access. With the MATCH overlay, only the DATASET object can be used here, where you can specify the records and their format for the update. Below you can find a simple example:
flcl ARCHIVE.UPDATE(STORE.FILE(NAME='my.fl5') FLAM(MEMBER='*' MATCH.DATASET(FORMAT=CSV DEFAULTS(CCSID=LOCAL) ROW(NAME='format1' column(name='column1')) RECORD='record1') MATCH.DATASET(FORMAT=CSV DEFAULTS(CCSID=LOCAL) ROW(NAME='format1' column(name='column1')) RECORD='record2') MATCH.DATASET(FORMAT=CSV DEFAULTS(CCSID=LOCAL) ROW(NAME='format1' column(name='column1')) RECORD='record3') )
The example is only intended to illustrate how to customize 3 records with one call. For mass updates, you should work with the COMP subcommand.
STRING: MEMBER['str'/STREAM/DUMMY...] - List of member names (with wild cards) in the FLAM archive
STREAM - Read from stdin or write to stdout
DUMMY - Read EOF or write nothing
STRING: EXCLUDE='str' - Exclude members matching the specified wildcard pattern from processing