How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)
Answer Posted / vinodh
Goto ISPF 3.4, give the dataset name hit enter.
Press F11 until you see '%used', if its zero then the file
is empty. This will be useful if you want to validate many
GDG's for emptiness.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How many sections are there in data division in COBOL?
What is a scope terminator give example?
what is difference between cobol and cobol/400
What do you understand by psb and acb?
example for sub strings ? and refernce modifications whit output pls
What are the different rules to perform a Search?
how to convert the recors form vsam file to db2 table tru file aid
What are 77 levels used for?
How to know whether the module is dynamical or statistical?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
Write a cobol program making use of the redefine clause.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?