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
 
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: 92
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: 7315

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: 408
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: 408
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

Senior Member


Joined: 08 May 2006
Posts: 1002
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: 1817
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: 7315

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: 1817
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 Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 1 Fri Nov 17, 2017 9:49 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am

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