IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 8793
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 All times are GMT + 6 Hours
Forum Index -> CA Products
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Compare two character variables Head ... CLIST & REXX 3
No new posts Not able to view the values of variab... CA Products 1
No new posts Comparison of numeric edited variables COBOL Programming 4
No new posts Calling and updating SAS Macro variab... All Other Mainframe Topics 7
No new posts How to remove spaces between variable... DFSORT/ICETOOL 7

Back to Top