View previous topic :: View next topic
|
Author |
Message |
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
I am trying to extract the data from the table to present as a report.
For ex, say my SQL query as below:
select empno,empnm,empdpt from the emptable where empdept in(X to Y).
Here X, Y represents starting from 1 to 1000.
We have some millions of records in table.
Now I am trying to wirte SQL output to spool , but preparing is as a report seems a bit difficult. I want to write to output file. |
|
Back to top |
|
|
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
Hi,
I managed to to write to a file, now my issue is since data is huge file is not able to hold. Any alternative criteria to hold the data ?
Thanks. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Abraralum,
Quote: |
file is not able to hold. |
You have be more elaborate than that.
Show us your jcl and error you have got, so it will be easier for others to help you.
Thanks,
Sushanth |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I'm sorry but I didn't understand - what exactly you are looking for? You already have the query which works for you, so what is that you are looking for?
Quote: |
but preparing is as a report seems a bit difficult |
so do you need some help here? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
now my issue is since data is huge file is not able to hold |
oh..does it flow out of the system then or you just get an SB37 or similar abend!? |
|
Back to top |
|
|
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
Apologies , I am late to reply to this.
Yes Anuj, it was SB37. what I opted was to put a condition in query for evaluating dept Null value, so that it can be extracted to a file.
Thanks all for your time on this. |
|
Back to top |
|
|
AneeshMani
New User
Joined: 25 Jan 2008 Posts: 24 Location: india
|
|
|
|
Hi,
Good Morning...
Try increasing the file size. If your file is large enough to hold your report, you wont be getting the SB37.
Also,
1. Please post your JCL as sushanth has suggested so , we will be in a better position to help you.
2. Make sure to post all possible details like abend codes, your JCL at the beginning so that your queries can be solved ASAP.
Thanks & Regards,
A |
|
Back to top |
|
|
|