IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Using indexed variables in EZPLUS


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SRIDEVI TANTRY

New User


Joined: 08 Jan 2018
Posts: 6
Location: india

PostPosted: Thu Feb 01, 2018 12:15 pm
Reply with quote

Hey all,

I have an indexed ( not sub-scripted) variable that i am retrieving from the DB into my EZPLUS module using another cobol module.
The variable returned from the cobol module is var-ret, PIX X(03)
The maximum occurrences for this is 70. My code, for the current record, returns 3 values of this variable. Therefore, i set the index to 0, then increment it by 1 till count > 3. The first value returned for index 0 is displaying as ABC, which is correct and what is expected. However, in the next instance, when the index becomes 1, the value returned should be DEF, but becomes EFG where G has come in from the next field in the DB ( or the next variable in the COBOL module which calls the DB). Similarly, when the index is 2, the variable returned should be GHI but comes as IJK(shifted two places now)..
How are indexed variables used in EZPLUS?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Thu Feb 01, 2018 12:26 pm
Reply with quote

Perhaps actually showing your code - using the code tags - may help us help you. Psychic day was yesterday this week.


Use of code tags shown below.
Code:
[code] ... your stuff here .... [/code]
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
No new posts JCL with variables JCL & VSAM 1
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
No new posts JCL Variables JCL & VSAM 1
Search our Forums:

Back to Top