Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to define the variable for Data movement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Tue Mar 23, 2010 11:00 am    Post subject: How to define the variable for Data movement
Reply with quote

Hi,
I have two variables
ws-br-no 9 6 N
ws-ac-no 9 6 N

Combination of two varaible will give me the result.
I want to move this into variable
ws-acc-no 9 12 N

but i am not aware how to do data movement in this case.

Please suggest how to define the variable for movement.

Regards,
Back to top
View user's profile Send private message

technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Tue Mar 23, 2010 12:00 pm    Post subject: Reply to: Data movement
Reply with quote

In this easytrieve program..

You may define the 'ws-acc-no' as group variable. You dont have to move the fields individually.

ws-acc-no 9 12 N
ws-br-no ws-acc-no 9 6 N
ws-ac-no ws-acc-no 15 6 N
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Tue Mar 23, 2010 12:18 pm    Post subject:
Reply with quote

I think it has be coded as follows :

Code:

ws-acc-no 9 12 N
ws-br-no ws-acc-no    6 N
ws-ac-no ws-acc-no +6 6 N
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Tue Mar 23, 2010 12:23 pm    Post subject:
Reply with quote

Even the one I suggested would be ok right Peter? Just checking..
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2435
Location: Netherlands, Amstelveen

PostPosted: Tue Mar 23, 2010 2:27 pm    Post subject:
Reply with quote

Hello technut,

I guess so according to the manual.
I always used the "+" in redefining fields.
But of course that is not sanctifying.
Back to top
View user's profile Send private message
technut

New User


Joined: 27 Dec 2007
Posts: 73
Location: India

PostPosted: Tue Mar 23, 2010 3:02 pm    Post subject:
Reply with quote

Thanks for checking Peter!
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us