View previous topic :: View next topic
|
Author |
Message |
y0btunhgu0d
New User
Joined: 08 Jun 2023 Posts: 3 Location: United States
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
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 |
|
|
y0btunhgu0d
New User
Joined: 08 Jun 2023 Posts: 3 Location: United States
|
|
|
|
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 |
|
|
y0btunhgu0d
New User
Joined: 08 Jun 2023 Posts: 3 Location: United States
|
|
|
|
In the failure STEP001.RC was equal to 5. |
|
Back to top |
|
|
|