wht happens if blksize = 0 and lrec = 0 ?



wht happens if blksize = 0 and lrec = 0 ?..

Answer / rambabu

If we try to allocate a dataset giving blksize = 0 and
lrecl = 0, with Record format as FB, then system will give
you the below allocation error
"Record length of zero is valid only if record format is U"

If you are trying to copy an input dataset to an output
dataset with blksize=0 and lrecl=0, then system will copy
the file successfully and will allocate the record length
and block sizes that input datset has.

If you allocate the dataset with giving blksize = 0 and
lrecl = 0, with Record format as U, then the sort utility
fails with RC 16.

Is This Answer Correct ?    16 Yes 1 No

Post New Answer

More JCL Interview Questions

How to get cursor position from system in CICS environment ?

8 Answers  


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

4 Answers   IBM,


Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00

2 Answers  


Explain the function of the steplib dd statement?

0 Answers  


Differentiate between the joblib and the steplib statements?

0 Answers  






in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths

1 Answers   DELL,


1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent

4 Answers   Mind Tree,


What are the 4 fields in dd statement?

0 Answers  


How do you check the syntax of a JCL without running it?

17 Answers  


How is a GDG base created?

5 Answers  


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

0 Answers  


how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks in advance.

6 Answers   Syntel, UHG,


Categories