|
|
| Author |
Message |
kumar1234
Active User
Joined: 06 Nov 2007 Posts: 62 Location: bangalore
|
|
|
|
Hi,
I have a program which reads number of input files and writes it in an output file.
I compiled the prog and then ran it, I got the required output in the output file.
Then again i ran the prog and the job went fine but nothing is written to the output file.
My sysout is showing 100 records read but records written showing 0.
Can anyone let me know what could be the possible reasons for this problem.
Thanks, |
|
| Back to top |
|
 |
References
|
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1027 Location: Virginia, USA
|
|
|
|
| Logic error. |
|
| Back to top |
|
 |
Bitneuker
IMS Moderator
Joined: 07 Nov 2005 Posts: 1140 Location: The Netherlands at Hole 19
|
|
|
|
| disp=new? |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2350 Location: Mumbai, India
|
|
|
|
Hi,
Without knowing what the progrm is doing, no one here, at least me cann't predict why the output is empty in 'second' run. As Craq said, logical error.
Did You use the same input file in both the runs? Just another guess. |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 497 Location: Richmond, Virginia
|
|
|
|
| Try a DISPLAY before each WRITE. |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1027 Location: Virginia, USA
|
|
|
|
| Does the file have a file status and is it being checked after each write? |
|
| Back to top |
|
 |
Bitneuker
IMS Moderator
Joined: 07 Nov 2005 Posts: 1140 Location: The Netherlands at Hole 19
|
|
|
|
Give us information.........  |
|
| Back to top |
|
 |
kumar1234
Active User
Joined: 06 Nov 2007 Posts: 62 Location: bangalore
|
|
|
|
The output file is having Disp=(,catlg,catlg). And the file is having a file status but we are not checking after every write.
This is what is displayed in my sysout after the successful execution of the prog
PROGRAM B8628800 : SUCCESSFUL EXECUTION
# 02 SEGMENT RECORDS READ: 0441083
# 45 SEGMENT RECORDS READ: 0006441
# TOTAL RECORDS READ : 0022291093
# RECORDS WROTE TO FILE : 0000000 |
|
| Back to top |
|
 |
kumar1234
Active User
Joined: 06 Nov 2007 Posts: 62 Location: bangalore
|
|
|
|
| Yes I used the same input files for both the runs. |
|
| Back to top |
|
 |
kumar1234
Active User
Joined: 06 Nov 2007 Posts: 62 Location: bangalore
|
|
|
|
I tried giving display after each write and then run the prog. But this display does not come in the sysout. I think there is some problem somewhere near write.
Any other suggestions ? please. |
|
| Back to top |
|
 |
raak
Active User
Joined: 23 May 2006 Posts: 174 Location: chennai
|
|
|
|
Give us some details of ur input and output file.
Is any file opened in I-O mode? |
|
| Back to top |
|
 |
kumar1234
Active User
Joined: 06 Nov 2007 Posts: 62 Location: bangalore
|
|
|
|
| There around 7 input files and 1 output file. And there is one input file which is in I/O mode....... |
|
| Back to top |
|
 |
raak
Active User
Joined: 23 May 2006 Posts: 174 Location: chennai
|
|
|
|
See whether after contents of I/O file is getting chaged after ur first run.
I am thinking of some scenario in which the content of I/O mode is used to set some switch and once successfully processed the contents of I/O file are overwritten. So when the program enters the second time, the same situation might not exist as the first time ( due to change in contents of I/O file)
anyway its just a guess.. happy researching  |
|
| Back to top |
|
 |
raak
Active User
Joined: 23 May 2006 Posts: 174 Location: chennai
|
|
|
|
If all the other input files are same, then I guess the I/O file might be the reason for change in processing.
Try to find out the purpose of using that file in the program...
and do tell us ur findings alsoo  |
|
| Back to top |
|
 |
Purnendu.it
New User
Joined: 11 May 2007 Posts: 40 Location: chennai
|
|
|
|
| Code: |
I compiled the prog and then ran it, I got the required output in the output file.
Then again i ran the prog and the job went fine but nothing is written to the output file. |
can you pls show your job[/code] |
|
| Back to top |
|
 |
|
|