I have a file that I need to create and indexed file for but the data is not unique. I have multiple occurances of customer-id, date-hire, time-hire, date-return and time-return. I tried setting up the compound key to be customer-id, date-hire and time-hire which works fine, but when I set the...
I am using an indexed file for a program and the data is set up exactly the same in both but I get an error message of 1035-E Key is not wholly contained within minmum record length. This is the 4th program that is using this inded file and the other 3 are fine. Any ideas?
I have 2 input files to read. The first one CUSTOMER-FILE has 6 records that I can load directly into my 2 dimensional 6 x 4 table. The problem that I am having is loading the data from the USER-FILE into the same table as it has 15 records and some of those records will have the same ID number...
I am required to convert date and time information to the same data type to work out hours between 2 times i.e:
start date 121200 at 1001 (24 hour time)
finish date 130101 at 1000
how would I convert the days and times to the same data type so I can calculate hours and change it back to number...
I keep coming up with an error message 203 in my sub program. I am sure that I have called the sub program correctly but this message says that I have not initialised the item. I have initialised the item in the main program to zero and again in the subprogram.
This is the code that I have...
I am receiving an error subscript out of range Error 153 for the following table and query.
01 REPORT-TABLE
05 CUST OCCURS 6 TIMES DEPENDING ON CUST-SUB
10 CUSTOMER
10 DAYS OCCURS 4 TIMES INDEXED BY DAYS-SUB
15 T-1-DAY PIC 9(02).
15 T-2-DAY PIC 9(02).
15...
I am a little confused about linking sub programs. My books state that the main program will call the subprogram from a library. It must have the same details in Working Storage as the linkage section in the subprogram to be called, but how does the subprogram become part of a library?
I am writing a report to show the customers that have had a hire for 4 different time frames. This is done in a sub program called by the main. I am stumped by what calculations I need to perform as I only have start-time, end-time, hire-date,return-date. I have to work how many of those...
I have 2 input files that I need to load the information from into a 2 dimensional table. The table data will vary, therefore should I set the size of the table at a maximum size? The report that is required from this information shows client ID's and days of hire into 4 different time frames...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.