Hi, I have tried using ICETOOL to create a report of number of records present in various files. But i also want to print the current Date and Time as a header of the File. Please help me in achieving it.
Below i have mentioned the code i have used
***************************************************************************
//TOOL EXEC PGM=ICETOOL
//INDD DD DSN=FILE1.TEXT,DISP=OLD
//IND1 DD DSN=FILE2.TEXT,DISP=OLD
//OUDD DD DSN=OUTPUT.TEXT,DISP=MOD
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLIN DD *
COUNT FROM(INDD) WRITE(OUDD) TEXT('FILE1 ') DIGITS(7)
COUNT FROM(IND1) WRITE(OUDD) TEXT('FILE2 ') DIGITS(7)
/*
***************************************************************************************
it gives me an output like below
FILE1 0000516
FILE2 0000085
But i want the output to look like
Page:1 Date: 19-AUG-2014 Time: XX:XX:XX
File name Record Count
------------- -----------------
FILE1 0000516
FILE2 0000085
I was able to print current date when i am working on a single file. But not like this. please help me. THank You in advance.