meaning of DOS command

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
suja.somu
Participant
Posts: 79
Joined: Thu Feb 07, 2013 10:51 pm

meaning of DOS command

Post by suja.somu »

Can anyone explain me the what the below DOS subroutine does?


In Before Job subroutine : EXECDOS

for %I in (D:\APPDATA\VAS\IN\tmcad.txt) do if %~zI==0 (exit 1) else exit 0
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It checks the file's size and fails the batch if the size is zero.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply