What will happen when we try to pass data from JCL to COBOL
using PARM parameter without declaring the length field in
Linkage Section?

Answers were Sorted based on User's Feedback



What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring..

Answer / madhu t

if we do not code the length field for parm in cobol then
the first 2 bytes of parm data will be used to stored the
length of parm field and also first 2 bytes of parm data
will be lost.

Is This Answer Correct ?    15 Yes 3 No

What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring..

Answer / randhir

if we do not code the length field for parm in cobol then
the first 2 bytes of parm data will be used to stored the
length of parm field and also last 2 bytes of parm data
will be lost.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More JCL Interview Questions

what is the resolution for sb37 error

2 Answers   TCS,


Hi, all Suppose i have 10 step in a job (s1,s2,s3,...s10) i want to execute step9 first and then step3 and i used the DPRTY for these steps. so what will happen to other steps? Will the get executed or only these two steps get executed?

2 Answers  


how to put a dependency on job in jcl using opc scheduler?

1 Answers   CTC,


There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to a procedure PROCA from a JOB. //STEP01 EXEC PROCA ... Here "PROCA" in JOB refers to the actual PROC name or the member name of the PDS where this PROCA is stored.

2 Answers   Merrill Lynch,


is there any utility for restarting a particular step in jcl reply soon ?

5 Answers  






I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?

16 Answers  


what is the difference between JES3 and JES2?

0 Answers  


Name what parameter directs the output of the job log dataset?

0 Answers  


How dummy is used in jcl?

0 Answers  


In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?

14 Answers   Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,


what is the control cards?

3 Answers  


if we give TIME=0 how many sec that job/step

14 Answers  


Categories