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

Drop all the records before a criteria


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 161
Location: South Africa

PostPosted: Tue May 21, 2013 11:57 pm
Reply with quote

Actually from the callout prospective we use DISP=OLD as the dataset is created in one cycle job which gets refreshed everyday after the batch run. We keep it DISP=OLD because if the job abends and when we ask the operator to rerun then we should not face the JCL error for dataset already present.
After every step we check the RC and if the RC is expected then we proceed to next step else abend the job.

But for the above scenario it is my mistake while testing. The input dataset in production is a GDG version and the output dataset is a temp and then the temp dataset goes to next step for creation of report. So, when I started testing I converted it to normal dataset and did the testing and I forgot and argued for LREC=250. Sorry for that. It was my mistake for misunderstanding. If everybody agrees then we can close this topic.

Code:
DSN=&&MARKOFF,DISP=(NEW,PASS),         
DCB=(RECFM=FB,LRECL=250),             
SPACE=(CYL,(2,5)),UNIT=SYSDA           
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 22, 2013 12:08 am
Reply with quote

Hello,

Quote:
when we ask the operator to rerun then we should not face the JCL error for dataset already present.

Exactly a situation that demonstrates poor process design.

Well-implemented batch jobs ALWAYS cleanup before and/or after they run. There would be NO WAY to have problems if these jobs were properly implemented.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed May 22, 2013 12:20 am
Reply with quote

dick scherrer wrote:
Quote:
when we ask the operator to rerun then we should not face the JCL error for dataset already present.

Exactly a situation that demonstrates poor process design.

Or lack of knowledge; I'd be willing to bet a decent sum that Abhijit-kun is misusing "abend" to mean "the job doesn't run entirely as expected".
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: Wed May 22, 2013 12:28 am
Reply with quote

I've never heard of doing it that way :-)

That's definitely a "not fixing the brakes but making the horn louder".

I don't suppose you use RLSE? Client overpaying for DASD? Or have to have secondary allocation taking on the role of primary, so overallocation during the run, no "warning" of unexpected extensions in file sizes, blah, blah.

I'd suggest getting it fixed before the client finds out. Unless it was their idea in the first place, in which case give me their contact details, please, as I've got a bridge I'd like to sell to them :-)
Back to top
View user's profile Send private message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 161
Location: South Africa

PostPosted: Wed May 22, 2013 1:11 am
Reply with quote

Well the processes are already there from past. Which I can't change but I will keep in mind whenever I will put my changes.
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 Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts DROP & ALTER PARTITION-PBR DB2 0
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top