That worked! Let me see if I can add another level of complexity. Instead of setting a RC=04 and then using that conditional code to create a dataset, can it be done in the same step? So, if we encounter an empty file or a "NO DATA" Header record, I need to create an dataset (will be used by another system)
Frank answers questions on DFSORT as he is a DFSORT developer. Since some of the control statements work the same way in SYNCTOOL, you were able to run your SYNCTOOL job.
I dont think it's possible to include your empty file creation also into the above job. You got the RC=4 SET based on the input conditions, now you're good to use it in your next step to do whatever you want.