loop and increment the first index instead of the second. The second would remain constant (either 1 for the first column or 2 for the second) _________________ Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FNAME DFHMDF POS=(9,22),LENGTH=8,
Above is my BMS MACRO definition for FNAME field. This FNAME data I want to display Five (rows) times on my screen. Correspondingly I've used occurs 5 times in my symbolic map for the output field(FNAMEO). I compiled my program and ran the same. But I'm getting output as below.
ABCDEFGH BBSDEFGH AJDKFLSD ASDFKGLD ASGDJFLS
My expected out put is below.
As per the information, i have with me.
using OCCURS, you wont get vertical fields in BMS map.
If you want all fields in one column to be in a array structure
to access from cobol program. do following.
1. define the fields in BMS map with same name
2. after creating the symbolic map. modify symbolic map
to define array on these fields using REDEFINES clause.
3. now , you can use these arrays to refer the fields in BMS which are defined with
same name. _________________ Natarajan
As you said I could not create a vertical array through occurs clause in BMS map. And I tried using OCCURS clause to my output field varibles in symbolic map, even it's creating a horizontal array.
Please don't mind to provide me a sample symbolic map definition for the same....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum