we define the array like this
01 array
02 veg occurs 10 times
03 days occurs 6 times
04 cost pic 9(5).
but why don't we write it as
01 array
02 veg occurs 10 times
03 days occurs 6 time
04 cost pic 9(5).
is there any error will occur ,what is it? and why don't
01,02,03 not contain picture clause? if we put pic in those
is there any error will occur what is it will occur?

Answer Posted / rajvee

If you want to put 02,03,04 in one column no error will
occur, its only a common coding standard to be followed.
group item don't carry pic clause only elementary items
will.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What parameters can be used to limit the number of records written to a sysout dataset?

751


what is DSN in JCL and what are the parameters to declare the DSN?

720


what is the compile process of cobol program expalin with code

2002


What are the utility programs in jcl?

648


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

800






if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1616


Where can program checkpoints be stored for use in a restart?

851


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1352


How does jcl act on a cobol code?

659


What is the purpose of dd * statement in jcl?

812


What is the function of the dd mgmtclas keyword in sms datasets?

740


How can the disposition of sysout datasets be set for an entire jobstream?

841


What are steplib and joblib? What for they are used?

696


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

728


Name the parameters which can be used to limit the number of records written to a sysout dataset?

654