Joined: 22 Sep 2013 Posts: 81 Location: pune india
I want to print name of previous month like "Sep 2013" if job run on 1st of October,in my header.
Also i want two blanks rows after my first header,i am already using two headers and two trailer.
Joined: 22 Sep 2013 Posts: 81 Location: pune india
I am using DFSORT
This job will run on 1st of every month.I am already done with the report preparation i just stuck with the header part.I want to print month name and year like "sep 2013" somewhere in header.So my heading will look like below
"Mailbox for EFT transaction on us (&prev-month current year)"
Please advise what keywords shall i use to do this.
Also i want two blank rows after the header to make the report more readable.
Joined: 22 Sep 2013 Posts: 81 Location: pune india
Hi Skolusu
Thanks for reply!!
But it looks like as i am already using the build function for other calulations this is not getting proper result.
I am unable to print like"Sep 2013" also my other calculation also getting effected.
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
Quote:
But it looks like as i am already using the build function for other calulations this is not getting proper result.
I am unable to print like"Sep 2013" also my other calculation also getting effected.
Hello,
How do you expect us to give you a solution that matches your requirement, unless you share what you have tried, input, output record structure?
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
You can't have more than one function on a single IFTHEN. So you can't have BUILD and FINDREP on the same IFTHEN,
If you look at Kolusu's example, he has one WHEN=INIT store the date and another WHEN=INIT to do the FINDREP.
Why don't you use that approach to extend your input records with the date attached to the end of the record, and then specify that position for your date when you do the BUILDs later?
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Well, what it does when you take the BUILD off (and assuming you took off the comma on the previous line) is a very big clue to the reason for having it.
So, what output do you get when you take off the BUILD? Can you work out what those unexpected things are and relate it to the earlier code in the Control Cards?