Posted: Tue Apr 24, 2007 3:44 am Post subject: Julian date in a report using ICETOOL
I have an input file in the format as below:
Code:
ABC 1234
DEF 1234
GHI 1234
JKL 1234
I want to generate a report in the format as below: 07114 is the Julian date ,when the job is run the julian date should be displayed in the report.
Code:
PAGE : 1
RUN DATE : 04/24/07
RUN TIME : 01:06:31
SUMMARY REPORT
CODES
-----
07114ABC
07114DEF
07114GHI
07114JKL
My job is like as below which is executing a COBOL DB2 Program and i am passing a parameter &DATE from the SCHEDULAR we use in our shop in which i will initialize Julian date say for example 07114 and i am using ICETOOL purposefully for generating a Report:
Can we generate Julian date using some functions like Y'DATE3' Y'YYDDD' or make use of the SCHEDULAR variable for generating Julian date in the Report ?
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Tue Apr 24, 2007 4:57 am Post subject:
No symbolic, in this case &DATE, can be used to CHANGE data via the OS - you have to use a program that reads the substituted value in some way - either as a parm or by a dataset that is allocated on the basis of the value in the symbol. You will have to use DFSORTs date faciliies to get the date in the required format - in this case Julian (yyddd). _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
INREC FIELDS=(2:DATE3,2,3,124X)
OUTFIL FNAMES=OUT,REMOVECC,
HEADER1=(60:C'PAGE : ',PAGE,/, * HEADER PAGE
60:C'RUN DATE : ',DATE,/, * HEADER DATE
60:C'RUN TIME : ',TIME,/, * HEADER TIME
1:133X,/,
25:'SUMMARY REPORT',/,
1:133X,/,
2:C'CODES',/,
2:C'--------')
How can i achieve the desired result as i am first formatting my input records ,then printing the headers and then copying the formatted input records to the output after the headers are printed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum