. Given the following JCL snipets first indicate if the JCL snippet is valid or
ID: 3851486 • Letter: #
Question
. Given the following JCL snipets first indicate if the JCL snippet is valid or invalid and If the JCL contains an error, them describe the error contained in the statement.
JCL Snippet
Valid/Not Valid
Concept or Error
//ABC1 DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
//ABC1 DD DISP=SHR,
//PITTZIPCODES DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
//ZIPCODES DD DISP=SHR,
DSN = RMUI001.DATA.ZIPCODE
//ABC1 DD DISP=
//SHR,DSN=RMUI001.DATA.ZIPCODE
//1RMU EXEC PGM=SORT
//RMU1 EXEC PGM=SORT
JCL Snippet
Valid/Not Valid
Concept or Error
//ABC1 DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
//ABC1 DD DISP=SHR,
//PITTZIPCODES DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
//ZIPCODES DD DISP=SHR,
DSN = RMUI001.DATA.ZIPCODE
//ABC1 DD DISP=
//SHR,DSN=RMUI001.DATA.ZIPCODE
//1RMU EXEC PGM=SORT
//RMU1 EXEC PGM=SORT
Explanation / Answer
Valid/Not Valid
Concept or Error
//ABC1 DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
It is not valid.
DD statement syntax is :
//DDname DD parameters
DDname should be 1 to 8 character length and start with alphabet or special chracter($, #, @ ).remaining are alphanumeric.
parameters are DISP , DSN ,VOL etc.
DISP = SHR is valid . it means already created dataset will read in jobstep.
DSN = RMUI001.DATA.ZIPCODE is valid .it means creating temperory dataset will be used in next job step.but In jcl snippet every codestatement starts with // , but second line doesnot has //
//ABC1 DD DISP=SHR,
It is not valid snippet.
Because DD statement is not completed.after DISP=SHR, there is a comma , which means DD has more parameters but here no parameter is existed.
//PITTZIPCODES DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
It is not valid snippet.
It is not valid snippet. Because DDname should be 1to 8 length but PITTZIPCODES is of length 12.
and
In jcl snippet every codestatement starts with // , but second line doesnot has //
//ZIPCODES DD DISP=SHR,
DSN = RMUI001.DATA.ZIPCODE
It is not valid snippet.
It is not valid snippet.Because In jcl snippet every codestatement starts with // , but second line doesnot has //
//ABC1 DD DISP=
//SHR,DSN=RMUI001.DATA.ZIPCODE
It is valid.
DD statment is in two lines. first line is contues with the following line.So it is valid.
//1RMU EXEC PGM=SORT
It is not valid
EXEC statement syntax is :
//stepname EXEC parameters
stepname should be 1 to 8 character length and start with alphabet or special chracter($, #, @ ).remaining are alphanumeric.
but stepname here started with number,So it is not valid.
//RMU1 EXEC PGM=SORT
It is valid.
It means a program named SORT is executed with the stepname RMU1.
JCL SnippetValid/Not Valid
Concept or Error
//ABC1 DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
It is not valid.
DD statement syntax is :
//DDname DD parameters
DDname should be 1 to 8 character length and start with alphabet or special chracter($, #, @ ).remaining are alphanumeric.
parameters are DISP , DSN ,VOL etc.
DISP = SHR is valid . it means already created dataset will read in jobstep.
DSN = RMUI001.DATA.ZIPCODE is valid .it means creating temperory dataset will be used in next job step.but In jcl snippet every codestatement starts with // , but second line doesnot has //
//ABC1 DD DISP=SHR,
It is not valid snippet.
Because DD statement is not completed.after DISP=SHR, there is a comma , which means DD has more parameters but here no parameter is existed.
//PITTZIPCODES DD DISP=SHR,
DSN=RMUI001.DATA.ZIPCODE
It is not valid snippet.
It is not valid snippet. Because DDname should be 1to 8 length but PITTZIPCODES is of length 12.
and
In jcl snippet every codestatement starts with // , but second line doesnot has //
//ZIPCODES DD DISP=SHR,
DSN = RMUI001.DATA.ZIPCODE
It is not valid snippet.
It is not valid snippet.Because In jcl snippet every codestatement starts with // , but second line doesnot has //
//ABC1 DD DISP=
//SHR,DSN=RMUI001.DATA.ZIPCODE
It is valid.
DD statment is in two lines. first line is contues with the following line.So it is valid.
//1RMU EXEC PGM=SORT
It is not valid
EXEC statement syntax is :
//stepname EXEC parameters
stepname should be 1 to 8 character length and start with alphabet or special chracter($, #, @ ).remaining are alphanumeric.
but stepname here started with number,So it is not valid.
//RMU1 EXEC PGM=SORT
It is valid.
It means a program named SORT is executed with the stepname RMU1.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.