Vertical Array on CICS
Moderators: DikDude, Natarajan, Moderator Group
-
- Member
- Posts: 12
- Joined: Mon Oct 12, 2009 12:41 pm
Vertical Array on CICS
How to define a vertical array in CICS screen?
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
Even though the display is vertical, data sent to the screen is just one long data stream.
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)
Code: Select all
<-----(1,1) ----(1,2)> (1)
<-----(2,1) ----(2,2)> (2)
<-----(3,1) ----(3,2)> (3)
<-----(4,1) ----(4,2)> (4)
<-----(5,1) ----(5,2)> (5)
<-----(6,1) ----(6,2)> (6)
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 12
- Joined: Mon Oct 12, 2009 12:41 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Member
- Posts: 12
- Joined: Mon Oct 12, 2009 12:41 pm
FNAME DFHMDF POS=(9,22),LENGTH=8,
ATTRB=(UNPROT,BRT),
INITIAL='---------',
PICOUT='X(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.
FirstName
ABCDEFGH BBSDEFGH AJDKFLSD ASDFKGLD ASGDJFLS
My expected out put is below.
FirstName
ABCDEFGH
BBSDEFGH
AJDKFLSD
ASDFKGLD
ASGDJFLS
To get the desired output do I need to change my program logic or any change in the definition of field variable....?
Please feel free to respond for this....
Thanks,
Srikanth
ATTRB=(UNPROT,BRT),
INITIAL='---------',
PICOUT='X(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.
FirstName
ABCDEFGH BBSDEFGH AJDKFLSD ASDFKGLD ASGDJFLS
My expected out put is below.
FirstName
ABCDEFGH
BBSDEFGH
AJDKFLSD
ASDFKGLD
ASGDJFLS
To get the desired output do I need to change my program logic or any change in the definition of field variable....?
Please feel free to respond for this....
Thanks,
Srikanth
Hi Srikanth,
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.
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
Chennai
Chennai
-
- Member
- Posts: 12
- Joined: Mon Oct 12, 2009 12:41 pm
Hi Natarajan,
Thanks for your detailed explaination....
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....
Thanks for your detailed explaination....
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....
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page