Jump to content

printing from a multi-dimensional array, Help please!


mattjtayl

Recommended Posts

Ok for work I have to create a multidimensional array that data for a bank will be stored in then from that array I will print it. My boss said to first program it like i am recieving the array. Then later he will have me create the array.

 

It goes something like this. How can I make this into a multi-dimensional array? Any help would really be great!

 

Order multidimensional Array I will recieve will be arranged in and the printed like this.

 

PPD entries

-File Header Record

----Company/Batch Header Record(Batch#1)

--- ------#1 Entry Detail Record (and optional addenda Record)

----------#2 Entry Detail Record

----------- #n entry detail Record.

----- company/batch control record

--------company/Batch Header Record(Batch#2 through n)

-------------- -#1 Entry Detail Record( and optional Addenda Record)

-------------- - #2 Entry Detail Record

- -------------- #n Entry Detail Record

------- company/Batch Control Record

-File Control Record

 

there can be X amount of batches

and X amount of entry details

Each record has a format like this

 

File header:

 

field: 1 somecode = '5' position(01)

field: 2 somcode='ma' positions(02-04)

field 3 somecode ='blaht' position(05-10)

field 4 somecode = xxxxxxxxxx position(11-21)

.

.

.

field 13 ...........................................................

 

 

Company batch header:

field: 1 somecode = '7' position(01)

field: 2 somcode='ma' positions(02-04)

field 3 somecode ='blaht' position(05-10)

field 4 somecode = xxxxxxxxxx position(11-21)

.

.

.

field 11 ...........................................................

 

Entry Detail Record

 

field: 1 somecode = '9' position(01)

field: 2 somcode='ma' positions(02-04)

field 3 somecode ='blaht' position(05-10)

field 4 somecode = xxxxxxxxxx position(11-21)

.

.

.

field 15 ...........................................................

 

entry addenda record

 

field: 1 somecode = '11' position(01)

field: 2 somcode='ma' positions(02-04)

field 3 somecode ='blaht' position(05-10)

field 4 somecode = xxxxxxxxxx position(11-21)

.

.

.

field 9 ...........................................................

 

Company batch control record

 

field: 1 somecode = '2' position(01)

field: 2 somcode='ma' positions(02-04)

field 3 somecode ='blaht' position(05-10)

field 4 somecode = xxxxxxxxxx position(11-21)

.

.etc... on and on ...

.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.