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

How to define the variable for Data movement


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Mar 23, 2010 12:18 pm
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
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Mar 23, 2010 2:27 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top