THERE IS ONE STEP AS BELOW:
//STEPJS060 EXEC PGM=XYX,
COND=((200,EQ,JS010),(0,NE,JS020.C),EVEN)
COULD ANY ONE EXPLAIN HOW COND PARAMETER WORKS HERE?
I AM CONFUSED BECOZ OF "EVEN".

Answers were Sorted based on User's Feedback



THERE IS ONE STEP AS BELOW: //STEPJS060 EXEC PGM=XYX, COND=((200,EQ,JS010),(0,NE,JS020..

Answer / veerakumar k

'Even' is generally used in such a scenerio that even if
the previous step abends, the current step has to be
executed.

Is This Answer Correct ?    2 Yes 2 No

THERE IS ONE STEP AS BELOW: //STEPJS060 EXEC PGM=XYX, COND=((200,EQ,JS010),(0,NE,JS020..

Answer / rookie

Here first
(200,eq,js010) will be checked it true the step will be
bypassed without further processing
if false then
(0,ne,js020.c) will be checked if false then again the step
will bypassed with no further processing of the cond
if false then
even will come to picture and the step will be executed even
if thr was any previous abends.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More JCL Interview Questions

Can we delete the data using IEFBR14 , IEBGENER??

5 Answers   Kanbay,


I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.

0 Answers  


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

0 Answers  


What do you know about jcl?

0 Answers  


can we copy a file from fixed block to variable block and vice versa ....asap

1 Answers  






As PARM can supply information to a program ? Can PARM be used to supply information to a cataloged or Inline Procedure also ?

2 Answers   IBM, RS Software,


What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?

1 Answers   Accenture,


what is use of space parameter in dd statement?

0 Answers   IBM,


i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0

3 Answers  


Explain about LMOPEN -

1 Answers  


If we want to see the eliminated duplicate record thru SORT, how its output file will be managed

6 Answers   Syntel,


Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA

3 Answers   VC, Wipro,


Categories