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

CA7 deleting files in steps after job terminates


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
y0btunhgu0d

New User


Joined: 08 Jun 2023
Posts: 3
Location: United States

PostPosted: Thu Jun 08, 2023 12:31 am
Reply with quote

I have a process that receives a file from an outside vendor. That file is then validated before it is used to build a working file used in downstream JCLs. The issue that I am having is that CA7 is allowing an IDCAMS step that clears the output file to execute even though the validation step fails. Is it normal for CA7 to clear out file ahead of the actual step?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Thu Jun 08, 2023 2:19 am
Reply with quote

So, a job runs upon receiving (ftp?) a file from somewhere. That job has multiple steps. One of those steps fails and the next step proceeds to delete/clear a file.

I think we need more details about the overall process and the jobs/steps involved and how CA7 monitors the progress.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Jun 08, 2023 5:23 pm
Reply with quote

Quote:
CA7 is allowing an IDCAMS step that clears the output file to execute even though the validation step fails.

The issue sounds like a COND code issue or IF condition issue rather than CA7 issue.

Show us what COND statements you have on the steps
Back to top
View user's profile Send private message
y0btunhgu0d

New User


Joined: 08 Jun 2023
Posts: 3
Location: United States

PostPosted: Fri Jun 09, 2023 1:23 am
Reply with quote

This is the basic Idea.

//GENERIC1 JOB 'GENERIC JCL',
// CLASS=?,
// MSGCLASS=?,
// COND=(4,LT),
// REGION=??
//*
//OVRLIB JCLLIB ORDER=(GENERIC.PROC.LIB)
//*
//JOBLIB DD DSN=GENERIC.LOAD,DISP=SHR
//*
//STEP001 EXEC PGM=PROGRAMA
//INFILE DD DSN=GENERIC.INPUT.VENDOR.FILE,
// DISP=(SHR,KEEP,KEEP),
// DCB=BUFNO=31
//*
//*
// IF STEP001.RC EQ 0 THEN
//*
//*
//STEP002 EXEC PGM=IDCAMS
//SYSUDUMP DD SYSOUT=&DOUT
//SYSPRINT DD SYSOUT=&SOUT
//SYSOUT DD SYSOUT=&SOUT
//SYSIN DD *,SYMBOLS=JCLONLY
DELETE GENERIC.OUTPUT.VENDOR.FILE
IF MAXCC = 8 THEN SET MAXCC = 0
//*
//*
// ELSE
//*
//*
//STEP099 EXEC PGM=ATABEND
//*
//*
// ENDIF
//*
//*

But I think the issue I am having is from in this post.

ibmmainframes.com/viewtopic.php?t=56071&start=0&postdays=0&postorder=asc&highlight=
Back to top
View user's profile Send private message
y0btunhgu0d

New User


Joined: 08 Jun 2023
Posts: 3
Location: United States

PostPosted: Fri Jun 09, 2023 1:24 am
Reply with quote

In the failure STEP001.RC was equal to 5.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top