Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Not writing to OUTPUT FILE(output file empty)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Tue Mar 04, 2008 8:11 pm    Post subject: Not writing to OUTPUT FILE(output file empty)
Reply with quote

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

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Mar 04, 2008 8:14 pm    Post subject:
Reply with quote

Logic error.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Mar 05, 2008 1:08 am    Post subject:
Reply with quote

disp=new?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Mar 05, 2008 1:35 am    Post subject:
Reply with quote

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

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Wed Mar 05, 2008 2:04 am    Post subject:
Reply with quote

Try a DISPLAY before each WRITE.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Mar 05, 2008 2:07 am    Post subject:
Reply with quote

Does the file have a file status and is it being checked after each write?
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Mar 05, 2008 2:24 am    Post subject:
Reply with quote

Give us information......... icon_idea.gif
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Mar 05, 2008 12:26 pm    Post subject: Reply to: Not writing to OUTPUT FILE(output file empty)
Reply with quote

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

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Mar 05, 2008 12:45 pm    Post subject: Reply to: Not writing to OUTPUT FILE(output file empty)
Reply with quote

Yes I used the same input files for both the runs.
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Mar 05, 2008 1:43 pm    Post subject: Reply to: Not writing to OUTPUT FILE(output file empty)
Reply with quote

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

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Wed Mar 05, 2008 1:53 pm    Post subject:
Reply with quote

Give us some details of ur input and output file.
Is any file opened in I-O mode?
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Mar 05, 2008 2:17 pm    Post subject: Reply to: Not writing to OUTPUT FILE(output file empty)
Reply with quote

There around 7 input files and 1 output file. And there is one input file which is in I/O mode.......
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Wed Mar 05, 2008 3:07 pm    Post subject:
Reply with quote

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

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Wed Mar 05, 2008 3:10 pm    Post subject:
Reply with quote

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 icon_lol.gif
Back to top
View user's profile Send private message
Purnendu.it

New User


Joined: 11 May 2007
Posts: 59
Location: chennai

PostPosted: Wed Mar 05, 2008 3:55 pm    Post subject: Reply to: Not writing to OUTPUT FILE(output file empty)
Reply with quote

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

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Wed Mar 05, 2008 4:22 pm    Post subject:
Reply with quote

Kumar,

Check your JOB/JES messages. If you have DISP=(,CATLG,CATLG), you are more than likely receiving a JCL error because the dataset has already been cataloged/created. Change the DISP parameter, for your output dataset, to DISP=SHR or DISP=OLD then comment out or remove your UNIT, SPACE and/or DCB parameters as well, before you rerun your JOB. You can also delete the output dataset before you rerun your JOB. Since you have not shown us your JCL, we can only guess as to what problem you are having.

Rick
Back to top
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Wed Mar 05, 2008 4:23 pm    Post subject: Reply to: Not writing to OUTPUT FILE(output file empty)
Reply with quote

Here is the job which I am executing.........


//BTO1STL1 JOB (00010,TSTACCT,10E5),'KUMAR',
// CLASS=K,MSGCLASS=L,NOTIFY= BTO1STL1
//JOBLIB DD DSN=ADS.TEST.LOADLIB,DISP=SHR
//B8227300 EXEC PGM=IKJEFT1A
//*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=H
//*
//WDDRN01 DD DUMMY
//*
//GTAMLIB DD DSN=PPMSVSAM.GTAMLIB,DISP=SHR
//ADDRIN DD DSN=LIST.A7550000.EMAIL.ADDRESS(0),DISP=SHR
//*
//FORMATCD DD DSN=PPMS.UTILLIB(COMPRESS),DISP=SHR
//*
//WDDRN02 DD DISP=SHR,DSN=PPMS.SY040010.WDW0101A(+0)
//*
//B8227301 DD DSN=BTO1STL1.CLAIMS.B82270Z0.PIFCLOS1,
// UNIT=TST1,
// DISP=(,CATLG,CATLG),SPACE=(16000,(450,40),RLSE),
// DCB=(RECFM=FB,LRECL=330,BLKSIZE=16500)

//B8227302 DD DISP=SHR,DSN=ADS.PROD.UTILLIB(B8227500)
//*
//B8227303 DD DSN=PCLMVSAM.TOTPOL0,DISP=SHR
//*
//B8227304 DD DSN=PPMSVSAM.FCOCHNGE,DISP=SHR
//*

//B8227305 DD DSN=PPMS.SY015010.WDD2503(+0),DISP=SHR
//*
//B8227306 DD DSN=BTO1STL1.CLAIMS.B8227100.DLYCLM0T,DISP=SHR
//*
//ICNTLTBL DD DSN=CLAIMS.B0601202,DISP=SHR
//ICLMSTBL DD DSN=CLAIMS.YR2K.EXP.B0601502,DISP=SHR
//IELMNTBL DD DSN=CLAIMS.YR2K.EXP.B0601503,DISP=SHR
//IRLTNTBL DD DSN=CLAIMS.YR2K.EXP.B0601504,DISP=SHR
//*
//SYSTSIN DD DSN=ADS.TEST.UTILLIB(B8227600),DISP=SHR
//*
//SYSUDUMP DD SYSOUT=H
//SYSOUT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSABOUT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//PRNZONE DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//*
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Wed Mar 05, 2008 4:28 pm    Post subject:
Reply with quote

Kumar,

Hit enter too fast ... check for Not Cat2 message in the JES log for your JOB as well ...

Rick
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Wed Mar 05, 2008 4:30 pm    Post subject:
Reply with quote

Kumar,

Did you check your JOB in the JES log and read ALL the messages after execution?

Rick
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Wed Mar 05, 2008 4:36 pm    Post subject:
Reply with quote

Kumar,

Change:

Quote:
//B8227301 DD DSN=BTO1STL1.CLAIMS.B82270Z0.PIFCLOS1,
// UNIT=TST1,
// DISP=(,CATLG,CATLG),SPACE=(16000,(450,40),RLSE),
// DCB=(RECFM=FB,LRECL=330,BLKSIZE=16500)


To:
Quote:
//B8227301 DD DSN=BTO1STL1.CLAIMS.B82270Z0.PIFCLOS1,
//* UNIT=TST1,
// DISP=SHR
//* SPACE=(16000,(450,40),RLSE),
//* DCB=(RECFM=FB,LRECL=330,BLKSIZE=16500)


or:
Quote:
//B8227301 DD DSN=BTO1STL1.CLAIMS.B82270Z0.PIFCLOS1,
// DISP=SHR
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us