View previous topic :: View next topic |
Author |
Message |
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Mon Oct 30, 2006 3:15 pm Post subject: Creating array while designing screen using BMS macros.. |
|
|
I am desinging a screen using assembler program!!
previously i used create new screens using SDF..but the present organization doesn't have it..so I have to use macros....In SDF we were able to group the feilds and create a table of feild,after compiling the grouped were created in copybook...
while creating a screen using macros, we cann't manually create a table for the feild...
for eg. i have one (assume month) feild which repeats 12 times within the same screen..in assebler macros i have to define feild by feild, not like SDF where we can repeat it...
is there any way,we can create copybook with month occuring 12 times(creating a occurs table for month feild in copybook)..while compiling a map.
thanks
suma |
|
Back to top |
|
|
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Tue Oct 31, 2006 1:53 am Post subject: |
|
|
Suma,
Are you looking for something like this:
Code: |
MONTNAME DFHMDF POS=(11,1),LENGTH=15,OCCURS=12
|
In this case each field will occur 12 times which can hold individual 15 bytes of Month Name. _________________ Shekar
Grow Technically |
|
Back to top |
|
|
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Tue Oct 31, 2006 11:50 am Post subject: |
|
|
I tried OCCURS class,but it is displaying the fields in verical positions...
thanks
suma |
|
Back to top |
|
|
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Tue Oct 31, 2006 1:48 pm Post subject: |
|
|
Suma,
Can you let me know how do you want to show your fields on the Map ? _________________ Shekar
Grow Technically |
|
Back to top |
|
|
suma Beginner
Joined: 23 Jan 2006 Posts: 65 Topics: 29
|
Posted: Wed Nov 01, 2006 9:09 am Post subject: |
|
|
shekar,
tks for ur response!
the layout should be like this...
emp # emp salary
name
------- ----- -------- > horizontal
------- ----- --------
------- ----- --------
------- ----- --------
^
Vertical
emp # repeats 12 times horizontally...I used occurs class,at this feilds are getting filled vertically....
thanks..
suma |
|
Back to top |
|
|
|
|