Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Syncsort deleting records from VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Rajeev_mainframe

New User


Joined: 21 Aug 2006
Posts: 13

PostPosted: Tue Dec 08, 2009 2:32 am    Post subject: Syncsort deleting records from VSAM file
Reply with quote

I saw this code delete specific records from VSAM file. I tried doing it and it is actually deleting the records from VSAM but everytime my job is abending with below error message

VSAM LOGICAL ERROR 0C ON OUTPUT
SYNCSMF CALLED BY SYNCSORT; RC=0000
SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE

The JCL looks like:
Code:

//S1  EXEC PGM=SORT
//SYSOUT DD SYSOUT=*                           
//SORTIN   DD DSN=VSAM.DATASET,DISP=SHR
//SORTOUT  DD DSN=VSAM.DATASET,DISP=SHR
//SYSIN DD *                                   
  OPTION VSAMIO,RESET                         
  OMIT COND=(14,9,CH,EQ,C'544628DQ0')                               
  SORT FIELDS=(3,1,BI,A)                       
  RECORD TYPE=V                               
/* 


since Record type is V I am adding 4 bytes to the position. and for SORT Field this was the explanation given:

Sorting on the 3rd byte of the RDW and using EQUALS - since the third byte of the RDW is always X'00', this will ensure that the records that are not omitted are kept in their original order.


Thanks
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Dec 08, 2009 7:35 am    Post subject:
Reply with quote

why don't you just do a copy / or is your input the same dsn as output?

why is the 3rd byte of the RDW always x'00'?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8152
Location: East Dubuque, Illinois, USA

PostPosted: Tue Dec 08, 2009 7:55 am    Post subject:
Reply with quote

Quote:
since the third byte of the RDW is always X'00'
One of these days you'll run into VBS (variable, blocked, spanned) record format for files and are you going to be surprised.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2441
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 08, 2009 1:39 pm    Post subject:
Reply with quote

"why is the 3rd byte of the RDW always x'00'?"

Frank Yaeger said that here :

http://www.***READ FORUM RULES***.net/vbforums/showthread.php?t=24762

DFSORT info on vsam :

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/1.8.3.4?SHELF=&DT=20060615185603&CASE=
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Tue Dec 08, 2009 8:08 pm    Post subject:
Reply with quote

thank you Peter.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2441
Location: Netherlands, Amstelveen

PostPosted: Tue Dec 08, 2009 10:20 pm    Post subject:
Reply with quote

dbzTHEdinosauer wrote:
thank you Peter.


Well we are almost neighbours, so we should help each other.
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
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us