View previous topic :: View next topic
|
Author |
Message |
xpower
New User
Joined: 07 May 2006 Posts: 35
|
|
|
|
I used the VSAM file as a output file, and its disp=mod, however,
the return code is ICE077A 9 VSAM OUTPUT ERROR L(8) DATASET
I checked the reference, it shows
A VSAM logical error, reason code 8, can occur for a non-empty KSDS, RRDS, or VRRDS output data set if NORESET is in effect, or if the data set is defined without the REUSE option.
but the VSAM file cannot be defined REUSE, so I think REUSE is not the key reason...what does the NORESET means?? how can we set it attribute??
Code: |
//STEP010 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLIN DD *
SORT FROM(CPBPLT) USING(SRT1)
//INFILE DD DSN=VSAM1,DISP=SHR
//OUTFILE DD DSN=VSAM2,DISP=MOD
//SRT1CNTL DD *
SORT FIELDS=(01,19,CH,A)
OUTFIL FNAMES=OUTFILE |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What are you trying to do, add records to the file or to treat the file as new.
If it is the second option, use ALTER to put the cluster to REUSE, then load the data and use ALTER to go back to NOREUSE. |
|
Back to top |
|
|
xpower
New User
Joined: 07 May 2006 Posts: 35
|
|
|
|
Hi expat,
i wanna put the records to the existing vsam file(not treate the fils as new)
Best Regards,
Shaw |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Not sure on how ICETOOL treats the VSAM file when it opens it, but DISP=MOD has no effect for VSAM files. Might be one for Frank / Kolusu to comment on.
A few options that spring to mind ............
1) Sort the new records into key sequence and then use REPRO to insert them to the VSAM file.
2) Insert the records using a program.
3) Use ICETOOL to sort the new records and the existing VSAM file to new VSAM file and then rename the original and new file. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 582 Location: London
|
|
|
|
When a VSAM cluster is defined with REUSE and is not empty, and you write to it in Batch with a REPRO with the REUSE parameter then VSAM does a RESET (resets the HI-USE-RBA to 0) which in effect empties the file and is like writing to a QSAM file with DISP=OLD, writing from the start of the file. |
|
Back to top |
|
|
|