SQL1652N : File I/O error occurred

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

SQL1652N : File I/O error occurred

Post by Krazykoolrohit »

Hi,

I get the following error:

SQL1652N File I/O error occurred.
Error occurred while loading table
Internal Error: Function 'load_data' failed

I extract data to a sequential file and use this sequential file to load into DB2 using bulk load stage.

Before this error message i get sucessfull extraction:
387484 rows read from <Stage> 387484 rows written to <SEQ FILE> 540.320 CPU seconds used, 1722.823 seconds elapsed.

But after i get these error messages i get following.
DSD.SEQOpen Failed to open <FILE NAME> in directory <Path> STATUS = -1.

Any suggestions?
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Check the permissions. Are you writing and reading the sequential file at the same time? Then, that is the issue.

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

I am allowed to write and read to same sequential file in the same job. the job will complete writing first before starting to read. I am running 80 jobs successfully with same user and design.

Its jsut this job which aborts.(aborted twice). Maybe because it has much more data. I think its something related to performance. Please comment
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Are you doing extracting and loading both in the same job? If yes then check that both input and output tabs of the sequential file have identical file names.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you perhaps trying to write to the same sequential file from two stages in the same job? This is not permitted (by the operating system) and will result in a fatal error with the message you received.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

DSguru2B wrote:Are you doing extracting and loading both in the same job? If yes then check that both input and output tabs of the sequential file have identical file names.
The file name and format are same.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

ray.wurlod wrote:Are you perhaps trying to write to the same sequential file from two stages in the same job? This is not permitted (by the operating system) and will result in a fatal error with the message you received.
No, there is only one input link to the sequential file and only one sequential stage per job. It runs fine when run alone. It just blows up when run with 12 other jobs parallely through sequence.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I guess your hitting a limit somewhere. This is what IBMhas to say about SQL 1652N.

Code: Select all

SQL1652N File I/O error occurred. 
Explanation: 
Error occurred either opening, reading, writing, or closing a file. 

User Response: 
Check the db2diag.log for details. Also, check for disk full conditions, file permissions, and operating system errors.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

This from the IBM website

Code: Select all

SQL1652N File I/O error occurred. 
Explanation: 
Error occurred either opening, reading, writing, or closing a file. 

User Response: 
Check the db2diag.log for details. Also, check for disk full conditions, file permissions, and operating system errors. 
Also check with your support providers, if there is a fixpack for this issue.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

What a co-incidence, DSguru2B and me looking into the same thing at the same time :wink:

Looks like people are running into this issue after installing a certain fixpack. There are many discussions on this topic on google.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

narasimha wrote:This from the IBM website

Code: Select all

SQL1652N File I/O error occurred. 
Explanation: 
Error occurred either opening, reading, writing, or closing a file. 

User Response: 
Check the db2diag.log for details. Also, check for disk full conditions, file permissions, and operating system errors. 
Also check with your support providers, if there is a fixpack for this issue.
I did check the db2diag.log file but found no warnings or errors in there. (thats what my DBA told me). I dont think we have installed any fix packs recently. Will check and see if i can catch hold of IBM for this.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Krazykoolrohit wrote:It just blows up when run with 12 other jobs parallely through sequence.
All trying to write to the same sequential file? Tch! Tch!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

ray.wurlod wrote:
Krazykoolrohit wrote:It just blows up when run with 12 other jobs parallely through sequence.
All trying to write to the same sequential file? Tch! Tch!
Thats a good one, :wink:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

DSguru2B wrote:
ray.wurlod wrote:
Krazykoolrohit wrote:It just blows up when run with 12 other jobs parallely through sequence.
All trying to write to the same sequential file? Tch! Tch!
Thats a good one, :wink:
lol..ya it is...no Ray. we are not trying to write to the same file. :-)
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Can you post the contents of the the db2diag.log?

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Post Reply