When we use conditional statement in JCL using
if-then-else-endif, IF statement is true, the step is
bypassed or executed?
Answers were Sorted based on User's Feedback
Answer / shubha
statement is executed,but if we use cond=( ),
then if the statement is true step will be bypassed.
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / satyasivaji.ch
When we use conditional statements if the condition
specified is true then step bypassed,n if u use if n else
statements then condition specified is true then step is
executed.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / arjun
The step will b bypassed if the condition is true. This is
the feature of JCL which is against all other languages
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / praveen bejjanki
JCL has 2 statement which can check for the Return code of
the previous step.
1. Cond stmt: step will be executed when the condition is
falst
2. If stmt: step will be executed when the given condition
is true.
@All: Correct me if i'm wrong
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nidhi sharma
IF STATEMENT IS TRUE STEP WILL BYPASS OTHERWISE IT WILL
EXECUTE.
| Is This Answer Correct ? | 4 Yes | 8 No |
How to read records in reverse order in flat file?
What you mean by skeleton JCl?
please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,
Name some of the JCL statements that are not allowed in procs.?
what is the control cards?
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
Explain about LMFREE�free data set from its association with data ID
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
How is a dataset passed from one step to another?
Can comments be specified at the very beginning of a jobcard? Will the JCL execute?
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
How can the attributes of one sms dataset be copied to another dataset?