IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

unload data then extract to file


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Thu Jan 13, 2011 3:48 pm
Reply with quote

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
View user's profile Send private message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Thu Jan 13, 2011 4:29 pm
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Jan 13, 2011 5:45 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jan 13, 2011 5:56 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jan 13, 2011 5:59 pm
Reply with quote

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!? icon_smile.gif
Back to top
View user's profile Send private message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Sun Jan 16, 2011 1:26 pm
Reply with quote

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
View user's profile Send private message
AneeshMani

New User


Joined: 25 Jan 2008
Posts: 24
Location: india

PostPosted: Mon Jan 17, 2011 7:00 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top