Hi Everyone,
Here is my requirement , am trying to extract few records from a VBA file using the file-aid batch. Below mentioned is the piece of code which i used
//STEP040 EXEC PGM=FILEAID
//DD01 DD DSN=SAMPLE.TEST.DATA,DISP=SHR
//DD01O DD DSN=SAMPLE.TEST.OUTPUT,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
$$DD01 COPY IF=(58,EQ,C'IEF404I')
/*
//
It should be ideally copying the records which has IEF404I in the 58th position. But when am running the batch program its throwing me an RC=08 , checked at the sysprint of the job and it displayed the following message
DD01 DSN=SAMPLE.TEST.DATA OPENED AS PS,
RECFM=VB,LRECL=137,BLKSIZE=32760,VOL=TLC226
DD01O DSN=SAMPLE.TEST.OUTPUT OPENED AS PS,
RECFM=FB,LRECL=80,BLKSIZE=800,VOL=T2C01A
$$DD01 COPY IF=(58,EQ,C'IEF404I') 0036000
ABOVE FUNCTION ENDED ON NORMAL EOD RC=0
RECORDS-READ=973205
0 RECORDS WRITTEN TO DD01O-SAMPLE.TEST.OUTPUT
VOL=T2C01A
It didn't provide much info , moreover it shows that it has read the input data but copy feature hasn't been invoked.I don't think it failed while copying VBA file to FB file because i did the same through online(file-aid) it did work. Please guide me through the process of correcting it.
Please help me out in resolving it!!!