But I am not able to see the records that have AD (hex) in the first position of the VB file copied into the FB file. The job runs successfully but its not copying the records that have AD in the first position. Please help.
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
Though I've edited your post but the original Sort statements were missing "=" after INCLUDE so I did not add that. Hopefully, that's a typo from your side.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Ideally I would move the INCLUDE cards to the input phase so that you would read less number of records. You also need to provide the position and length when using VTOF. try the following control cards.
Code:
//SYSIN DD *
OPTION COPY,VLSCMP
INCLUDE COND=(5,1,CH,EQ,X'AD',AND,
(14,3,SS,EQ,C'PHD,PHH,PHJ',OR,
22,3,SS,EQ,C'PHD,PHH'))