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
 
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: 2445
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: 2445
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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm

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