IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SORT(DFSORT) behaving abnormal


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Dec 10, 2015 5:28 am
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: 446
Location: USA

PostPosted: Thu Dec 10, 2015 9:29 am
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: 446
Location: USA

PostPosted: Thu Dec 10, 2015 9:43 am
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: 1193
Location: Dublin, Ireland

PostPosted: Thu Dec 10, 2015 4:04 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu Dec 10, 2015 10:32 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Dec 10, 2015 11:11 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu Dec 10, 2015 11:12 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top