So speaking in database terms? field terms
This garage scenerio ''GARAGE-ARRAY' (OCCURS 3).' is referring to 3 seperate fields
I will name the fields garage_descr_1, garage_descr_2, garage_descr_3
garage_descr_1 is really broken down into 4 'sub fields'
like this
1...
I do not see the 21
I only count 19
2+9+4+4 = 19
This below does not make sense to me at all
please explain if you can-
I am an experienced developer, but this is my first day attempting to understand cobol
There are six GRG-DIM fields; the 1st, 3rd, and 5th occupy bytes 14-17 of each...
That is a great reply.
You explained perfectly
1 more question? easy for someone of YOUR cobol expertise
03 GARAGE-ARRAY OCCURS 3.
05 GRG-TYPE PIC X(02).
05 GRG-AREA PIC S9(9).
05 GRG-DIM PIC S9(4) OCCURS 2.
how it states '022000 03...
BTX802R-REC I beleive is a fixed line file
This is what I was given to know how many characters each field contains in the cobol output sequential file (BTX802R)
I fill the array with the data in the file.
016900 01 BTX802R-REC.'''''name of the file to read
017000 03 RC-KEY...
I am reading a sequential file using a Visual Basic 6.0 Type Array. As I read each record from the cobol output Sequential file ---- the VB Sub will then insert a record into the db as I have the data put into the array with the correct space allocated from the cobol output file.
I am given...
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.