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
 
Need to exclude some files from processing

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

New User


Joined: 15 Jun 2006
Posts: 4

PostPosted: Thu Aug 03, 2006 12:52 pm    Post subject: Need to exclude some files from processing
Reply with quote

I have a following production job,were i am concatinating some production files.The problem is that sometimes any of the input files are not generated (due to earlier jobs) this particular job is abending.Is there any way to exclude that files from following step...? icon_sad.gif

//STEP010 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSOUD DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//IN DD DSN=file1,DISP=SHR
// DD DSN=file2,DISP=SHR
// DD DSN=file3,DISP=SHR and so on
//OUT1 DD DSN=&&TEMP,DISP=(,PASS),SPACE=(CYL,(2,1),RLSE),
// UNIT=TEMPDA,
// DCB=(RECFM=FB,LRECL=14,BLKSIZE=27944)
//TOOLIN DD *
SORT FIELDS = COPY
/*

Note: I cant manually delete those steps using that files or make DISP option as MOD since they are production files.
Back to top
View user's profile Send private message

shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Aug 03, 2006 1:59 pm    Post subject: Re: Need to exclude some files from processing
Reply with quote

hi malinisr,

Could you plz let me know whether the Input files that are needed to execute your step are not at all created or just empty.

~Vamsi
Back to top
View user's profile Send private message
malinisr

New User


Joined: 15 Jun 2006
Posts: 4

PostPosted: Thu Aug 03, 2006 2:14 pm    Post subject: Re: Need to exclude some files from processing
Reply with quote

Some Input files are not at all created
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Aug 03, 2006 2:53 pm    Post subject: Re: Need to exclude some files from processing
Reply with quote

Then...I feel there is nothing that can be done with ur step.

Check the Datasets manually whether they are existing and
U can override with a null file in the Job.

or

If u wan JCl to check,

Have one more step before your Step which checks whetehr the Dataset is created or not. Based on that u can put a condition to override with null files.


~Vamsi
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Aug 03, 2006 3:09 pm    Post subject: Re: Need to exclude some files from processing
Reply with quote

If you could setup another job to run prior to this one, it could do the check for which datasets are cataloged, and create a dynamic set of //DD statements, and write that to a member of a PDS.

Then, this job could refer to that PDS member with an INCLUDE statement.
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 Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 5 Fri Sep 22, 2017 6:00 pm
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 Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

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