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
 

 

SORT(DFSORT) behaving abnormal

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
chandracdac

New User


Joined: 15 Jun 2007
Posts: 91
Location: bangalore

PostPosted: Thu Dec 10, 2015 3:58 am    Post subject: SORT(DFSORT) behaving abnormal
Reply with quote

in one single job we are building two 2 separate date cards in two different datasets (PS). and copying both of them in to different members in one PDS. All these days it was working as expected. All of sudden the data in first member got replaced with data from 2nd member. I am sure we are not creating/updating those members any where else in our shop. This sounds like crazy. It happened only once. Not sure how it is happening.

Any experts to through some light?

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

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Thu Dec 10, 2015 5:28 am    Post subject: Reply to: SORT(DFSORT) behaving abnormal
Reply with quote

Let me guess. You have DISP=SHR. The two jobs ran at the same time. You got the expected result.

Use DISP=OLD, for the PDS or for a "locking file". Or use a PDSE.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Thu Dec 10, 2015 9:29 am    Post subject: Reply to: SORT(DFSORT) behaving abnormal
Reply with quote

I assume you must have checked the data in PS files. What is the data in those PS files, is it only a date?

Are you 'appending' the data from PS files everyday in the members of PDS ?
OR you are 'replacing' the contents of the members ?

How do you know if the data in member1 is actually the data from member2 ? It may happen that the PS file being copied contains the wrong data.

.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Thu Dec 10, 2015 9:43 am    Post subject: Reply to: SORT(DFSORT) behaving abnormal
Reply with quote

In general, softwares and machines have a set pattern of working and personally I don't believe that they can behave abnormally. In most of the cases, it's our lack of understanding that makes us to believe that.

I would not be surprised if later you find out a problem in copying data. ;-)

.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Thu Dec 10, 2015 4:04 pm    Post subject:
Reply with quote

It might be useful to show the job in question.

Garry
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Thu Dec 10, 2015 10:32 pm    Post subject:
Reply with quote

Quote:
All of sudden the data in first member got replaced with data from 2nd member

DFSORT doesn't work by magic, investigate the source data carefully.
Quote:
I am sure we are not creating/updating those members any where else in our shop.

Tell us what steps have you performed to ensure this statement is 100% true?
Bill,
Quote:
The two jobs ran at the same time.
, I think, it is a single job in question.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Thu Dec 10, 2015 11:11 pm    Post subject: Reply to: SORT(DFSORT) behaving abnormal
Reply with quote

Then the job was submitted twice :-)

As I said, a guess. Without anything else to go on, what can we say?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Thu Dec 10, 2015 11:12 pm    Post subject:
Reply with quote

Quote:
Then the job was submitted twice :-)
hahaha that was nice.
Back to top
View user's profile Send private message
aprocon

New User


Joined: 26 Oct 2010
Posts: 41
Location: chennai

PostPosted: Fri Dec 11, 2015 10:35 pm    Post subject: Reply to: SORT(DFSORT) behaving abnormal
Reply with quote

Run SMFTRACE, if you have the capability to and find out what updated the PDS and go from there.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 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 How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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