LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 15 Dec 1999 08:16:52 GMT
Reply-To:   rubber_duck_67@MY-DEJA.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   rubber_duck_67@MY-DEJA.COM
Organization:   Deja.com - Before you buy.
Subject:   Merging and overlaying fields

Hi,

Being a non SAS user I'm posting here in the hope that someone may be able to help. I'm a mainframe programmer wishing to write a simple utility that will assist us greatly with testing.

I have two input files, both defined as variable block, with record lengths of 32756 and block size of 32760, lets call them FILEA and FILEB. The output file will be FILEC defined in a similar fashion to those above.

I wish to take a 200 byte block from FILEA and insert it into the corresponding record in FILEB and output the updated FILEB to FILEC.

i.e.

FILEA = AAAAAABBBBBBCCCCCCCCCCCCCCCCCCCC FILEB = DDDEEEEEEFFFFFFFFFFFFFFFFFFFFFFF

I wish to create an output of :

FILEC = DDDBBBBBBFFFFFFFFFFFFFFFFFFFFFFF

In FILEA the 200 byte field starts at position 351 while in FILEB it starts at position 65.

Any assistance would be greatly appreciated.

Thanks in advance,

++++++++++ Ian Dukes RD Australia ++++++++++

Sent via Deja.com http://www.deja.com/ Before you buy.


Back to: Top of message | Previous page | Main SAS-L page