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: 2429
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: 2429
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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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