FFilea if e k disk
Ffileb uf a e k disk
D ds_filea E DS ExtName( Filea )
D ds_fileb E DS ExtName( Fileb )
read filea
dow not%eof(filea)
eval ds_fileb = ds_filea
eval random_number = random_number
write {fileb}
read filea
enddo
// dump member names to outfile for processing
runCmd( 'DSPFD FILE(LIB/FILEA) TYPE(*MBRLIST) OUTPUT(*OUTFILE) '
+ 'FILEATR(*ALL) OUTFILE(QTEMP/DUMPF)' );
FFilea if e k disk usropn
Ffileb uf a e k disk
D CmdString s 256 inz(*blanks)
D CmdLength s 15 5 inz(0)
D ds_filea E DS ExtName( Filea )
D ds_fileb E DS ExtName( Fileb )
C eval CmdString = %trim('ovrdbf filea member(*ALL) ')
C eval CmdLength = %len(%trim(CmdString))
C call(e) 'QCMDEXC'
C parm CmdString
C parm CmdLength
c if not%open(filea)
c open filea
c endif
read filea
dow not%eof(filea)
eval ds_fileb = ds_filea
eval random_number = random_number
write {fileb}
read filea
enddo
No comments:
Post a Comment