Author: RahulG31
Subject: Reply to: Check if any Detail records and extract count from Trailer
Posted: Tue May 09, 2017 2:01 am (GMT 5.5)
V S Amarendra Reddy,
If you don't want to copy all the records then just use STARTREC and ENDREC (=1) in OUTFIL and that will give you only a single record in OUT2. That way you are Not copying all the records. BUT you say that you'll look for other options.
I am trying to be more polite.
.
Subject: Reply to: Check if any Detail records and extract count from Trailer
Posted: Tue May 09, 2017 2:01 am (GMT 5.5)
V S Amarendra Reddy,
Quote: |
but the thing is it will try to copy ALL the records |
If you don't want to copy all the records then just use STARTREC and ENDREC (=1) in OUTFIL and that will give you only a single record in OUT2. That way you are Not copying all the records. BUT you say that you'll look for other options.
I am trying to be more polite.
Code: |
OUTFIL FNAMES=OUT2,INCLUDE=(1,2,ZD,EQ,02),STARTREC=1,ENDREC=1, NULLOFL=RC4 |
.