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

Moving a numeric field into a packed(Comp 3) variable


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
preeth

New User


Joined: 14 Sep 2006
Posts: 11

PostPosted: Fri Aug 17, 2007 12:23 pm
Reply with quote

I have searched through the forum, but havent found anything that could help me, or i was unable to understand it.

My problem is as follows:
I have VB file in which a variable is defined as follows
XYZ-ACCT-NR-GRP 118 10 A
XYZ-UNIT-NR 118 04 N
XYZ-ACCT-BBB-NR 122 05 N
XYZ-ACCT-AAA 127 01 N

and i need to move each field to the Corresponding field in another file where the group is defined as:

XYZ-ACCT-NR-GRP 02 07 A
XYZ-UNIT-NR 02 03 P +
XYZ-ACCT-AAA 05 01 N +
XYZ-ACCT-BBB-NR 06 03 P

Thank you in advance.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Aug 17, 2007 2:19 pm
Reply with quote

filename:dataname = recordname:dataname
where the filename is the name of the file and the recordname is the name of the record that the identical datanames occur in.
Back to top
View user's profile Send private message
preeth

New User


Joined: 14 Sep 2006
Posts: 11

PostPosted: Fri Aug 17, 2007 3:17 pm
Reply with quote

hi, could you please elaborate on what you explained.
I actually did using a sort card:
OUTREC FIELDS=(1,4,
122,04,ZD,TO=PD,
126,05,ZD,TO=PD,
131,01)
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Aug 17, 2007 3:26 pm
Reply with quote

preeth wrote:
hi, could you please elaborate on what you explained.
I actually did using a sort card:
OUTREC FIELDS=(1,4,
122,04,ZD,TO=PD,
126,05,ZD,TO=PD,
131,01)
Have you looked at the EZT manual?
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Wed Aug 29, 2007 5:27 pm
Reply with quote

preeth,
please clarify us.. are you doing it in Easytrieve or Sort ?

Thanks,
Itanium
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts variable in library name within a PROC. JCL & VSAM 11
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:


Back to Top