Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Using indexed variables in EZPLUS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Using indexed variables in EZPLUS
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: 8720
Location: Welsh Wales

PostPosted: Thu Feb 01, 2018 12:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Calling and updating SAS Macro variab... Yogesh Jaiswal All Other Mainframe Topics 2 Thu Oct 11, 2018 12:37 pm
No new posts How to remove spaces between variable... Selvarajars DFSORT/ICETOOL 7 Fri Jul 27, 2018 3:58 pm
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us