Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using BMS, how to code a row containing a bank # field 11 times?

Status
Not open for further replies.

barden9

Programmer
Aug 11, 2009
4
US
How would I code in (Basic Mapping Support) BMS
1 row with 11 unprotected, 4 position, bank number fields, side by side ?

Let's assume I have a map with several unprotected fields for "bank number".

The unprotected bank number field needs to be replicated 11 times on the same row.

Do you know how I could code for this in (Basic Mapping Support) BMS?
 
First define a group in the BMS as below:

BANKNBR DFHMDF POS=(ROWNO,COLNO),ATTRB=(UNPROT,NUM), X
LENGTH=4,GRPNAME=BANKS,OCCURS=11
BANK1 DFHMDF POS=(ROWNO,1),LENGTH=4,ATTRB(UNPROT,NUM), X
GRPNAME=BANKS
BANK2 DFHMDF POS=(ROWNO,6),LENGTH=4,ATTRB(UNPROT,NUM), X
GRPNAME=BANKS
.
.
.
Please repeat the above declaration for 11 times.

And for Copybook, you can define in two ways- either table definition or normal Group definition.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top