Search found 12 matches

by Gaurav ABN
Tue Jan 12, 2016 11:43 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

Re: It is not the "length of the file" it is the record-length.

"A file is in a directory; a data set is not", directory as in "folder"? or you mean some meaning? ABSOLUTELY NOT! A "folder" is a Windows construct and has no meaning on a mainframe. A Unix directory is equivalent to a folder on Windows but they are different (one key...
by Gaurav ABN
Tue Jan 12, 2016 11:41 am
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

Re: It is not the "length of the file" it is the record-length.

Thanks but in JCL we always make use of LRECL which actually mean logical record length and relate to the dataset mentioned there. Then is it actually relating to the records and not the data set? That is basically correct, although that you won't "always make use of LRECL"; you do not us...
by Gaurav ABN
Wed Dec 30, 2015 2:49 pm
Forum: Interview Questions.
Topic: Interview question on COBOL DB2 program.
Replies: 1
Views: 566

Re: Interview question on COBOL DB2 program.

After search I understand that I need to see if there are variables from table which are impacted in the program or not. And program should be compiled again.

Are there more steps needs to be done or these should be good enough. Please let me know.
by Gaurav ABN
Wed Dec 30, 2015 2:46 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

Re: It is not the "length of the file" it is the record-length.

You also said, "it is not a file but a dataset", but we can use the interchangeably right? Or can not we? The ONLY time the term "file" should be used on a mainframe is when you are talking about Unix System Services files. z/OS has data sets, and since z/OS runs Unix System Ser...
by Gaurav ABN
Wed Dec 30, 2015 1:37 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

Re: It is not the "length of the file" it is the record-length.

Being pedantic, and technically, correct then you cannot use 'file' instead of 'dataset'. We know what you mean and we (all?) use the terms interchangeably - but we shouldn't especially if you are discussing PC/*nix files and z/os datasets in the same conversation. We NEVER refer to the dataset len...
by Gaurav ABN
Tue Dec 29, 2015 1:49 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

Re: It is not the "length of the file" it is the record-length.

What is the meaning of statement "It is not the "length of the file" it is the record-length." Is not it one or the same thing? Consider a data set with fixed 80-byte length records. The data set has 10,000 records (exactly) in it. The record length for each and every record is ...
by Gaurav ABN
Tue Dec 29, 2015 1:48 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

Re: It is not the "length of the file" it is the record-length.

1) it is not a file but a dataset 2) a record is a single item within the dataset - a dataset contains 0 to many records. The length of a dataset is the combined length of all the records within it plus the lengths of each inter-block gap plus the length of included control information. A bit of si...
by Gaurav ABN
Mon Dec 28, 2015 1:51 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Segregating a variable length file in to different files.
Replies: 5
Views: 849

Re: Segregating a variable length file in to different files.

nicc wrote:Does the record length depend upon type of record? Id there a record type identifier? If "yes" to both then write out according to record type - no need to know the length.
As of now there is no record type identifier. Length is the only record type identifier.
by Gaurav ABN
Mon Dec 28, 2015 1:49 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: It is not the "length of the file" it is the record-length.
Replies: 13
Views: 1355

It is not the "length of the file" it is the record-length.

HI

I created this post Segregating a variable length file in to different files.. What is the meaning of statement "It is not the "length of the file" it is the record-length." Is not it one or the same thing?
by Gaurav ABN
Mon Dec 28, 2015 12:38 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Segregating a variable length file in to different files.
Replies: 5
Views: 849

Re: Segregating a variable length file in to different files.

How can I know the length of the file while reading? Read the Enterprise COBOL Language Reference manual for the RECORD CONTAINS DEPENDING ON clause. And how can I write 4 output files. 1. Write 4 SELECT statements. 2. Write 4 FDs. 3. Open 4 files for output. 4. Write WRITE <record name> 4 times wi...
by Gaurav ABN
Tue Dec 22, 2015 2:56 pm
Forum: Interview Questions.
Topic: Interview question on COBOL DB2 program.
Replies: 1
Views: 566

Interview question on COBOL DB2 program.

Hi, This is an interview question which I faced: A COBOl-DB2 program executing successfully currently and does what it should. If we need to add or delete a column in one of the tables and that table is used in this application COBOL program. What steps I need to take care about to make the program ...
by Gaurav ABN
Tue Dec 22, 2015 2:47 pm
Forum: IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.
Topic: Segregating a variable length file in to different files.
Replies: 5
Views: 849

Segregating a variable length file in to different files.

Hi, For an input file which is variable block and is of length 214. This file can have four type of records. Length 80, 100, 200 and 210. My objective is to read this input file, which is apparently variable block file, and write the output files. There should be four different output files. How can...

Go to advanced search