$set callfh"FHREDIR" environment division. configuration section. input-output section. file-control. select optional idxfile assign to disk "file.dat" organization is indexed access is dynamic lock mode is automatic record key is idxfile-primary-key file status is file-status. data division. file section. fd idxfile. 01 idxfile-rec. 03 idxfile-primary-key pic 999999999. working-storage section. 01 file-status. 05 status-key-1 pic x. 05 status-key-2 pic x. 05 binary-status redefines status-key-2 pic 99 comp-x. Procedure Division. open output idxfile move 0 to idxfile-primary-key perform 100 times perform 20 times add 1 to idxfile-primary-key write idxfile-rec end-perform commit end-perform close idxfile stop run.
cobol runner.cbl int();
The COBOL file is compiled to an .int file.
/s FS1 /um /ra 5 /rd 5000 /cm ccitcp
See Fileshare Client Configuration Options for details on each option.
run runner.int