View previous topic :: View next topic
|
Author |
Message |
subbuy2k
New User
Joined: 17 Apr 2009 Posts: 8 Location: milford
|
|
|
|
I have a VARIABLE LENGTH file with a hex '0d' in the end of each record. Have to replace '0D' with '40'.
Regards
subs |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
don't know how to remove the '0D'.
since it is somewhat obvious that this file originated on a PC
(the '0D' is line control character)
in the future, have the tranmit/transfer process drop the '0D'
and you won't have to deal with it on the mainframe. |
|
Back to top |
|
|
subbuy2k
New User
Joined: 17 Apr 2009 Posts: 8 Location: milford
|
|
|
|
That is the first thing i did. Unfortunately the tool they are using in windows dont have that facility, so i have to deal with this.
since its varible block file file, its throwing me error when i tried to replace using file aid utility. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Have you tried running the PC file into a Unix System Services file, then doing OGET to bring it into z/OS? I've had some success at getting rid of end of line characters in this way. |
|
Back to top |
|
|
subbuy2k
New User
Joined: 17 Apr 2009 Posts: 8 Location: milford
|
|
|
|
This is a existing system, i dont have any option in changing the design. my ONLY option is to replace the hex value in this variable length file. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
can you show what error FILEAID is throwing ?
and the syntax you are using ?
Gerry |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
gcicchet wrote: |
can you show what error FILEAID is throwing ? |
FILEAID? Is n't he asking for a SyncSort solution.? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
I missed the subject heading
This is what I based my question on, my apologies
Quote: |
since its varible block file file, its throwing me error when i tried to replace using file aid utility. |
Gerry |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
gcicchet wrote: |
I missed the subject heading |
Sorry I missed the details. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
my ONLY option is to replace the hex value in this variable length file. |
The ALTSEQ should solve the problem, though. . . |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Subs,
Both solutions provided in the link posted by arcvns should provide the desired output if you are running SyncSort for z/OS 1.3.2.1. If you are running an earlier release of SyncSort, then use ALTSEQ, as suggested by Dick (support for FINDREP was included in release 1.3.2.1). If you still have any questions after trying these methods, please post back here and we can further assist you. |
|
Back to top |
|
|
|