can we use the two 01 level in file discription ?
Answers were Sorted based on User's Feedback
Answer / vamsi
In a general scenario, we cannot use two 01 level numbers in
the same structure.
We can use this when we want to redefines entire structure only.
Eg:
01 ws-input.
10 name pic x(40).
10 desig pic x(40).
01 ws-input-re redefines ws-input
10 name pic x(30).
10 department pic x(10).
10 designation pic x(20).
10 salary pic s9(13)v99.
10 filler pic x(13).
this way we can use.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / sivakumar sekharannair
Two 01 level can be used for the same file, if the file is
a variable length file. Each 01 level identifies the
different layouts.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / janaki
Yes we can.. This means that teh second layout redefines
the first layout.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ramaswaminaidu g
Both vamsi and sivakumar are correct.we can use while
redefining o1 level and while using variable length records.
| Is This Answer Correct ? | 0 Yes | 0 No |
how do you reference the esds vsam file formats from cobol programs
Write the syntax of a two dimensional array?
how to create temporary data set in jcl? what is the use?
3 Answers Cap Gemini, Temenos,
I want to declare a field with data type Double in my COBOL program. how shall i do that ?
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe
6 Answers Citi Bank, CitiGroup, HSBC, iNautix, Wipro,
how would find total records in files using seqientional
01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.
Have you code any new programs in COBOL ? What is the functionality of the programs?
how to transfer the file from pc to mainframe??
can we read in input the file with a variable length ? please , how ..could you help me ?
What is the use of intialize verb?
plz,could any one tell me? what about EBCDIC in cobol?briefly?