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

Syncsort Replacing Hex value in Variable block


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Wed Jun 24, 2009 1:51 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 24, 2009 2:04 am
Reply with quote

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
View user's profile Send private message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Wed Jun 24, 2009 2:36 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 24, 2009 3:07 am
Reply with quote

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
View user's profile Send private message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Wed Jun 24, 2009 7:53 am
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jun 24, 2009 8:35 am
Reply with quote

subbuy2k,

This has already been discussed before. See this previous topic.

www.ibmmainframes.com/about34268.html
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Jun 24, 2009 8:41 am
Reply with quote

Hi,

can you show what error FILEAID is throwing ?

and the syntax you are using ?


Gerry
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jun 24, 2009 8:47 am
Reply with quote

gcicchet wrote:
can you show what error FILEAID is throwing ?
FILEAID? Is n't he asking for a SyncSort solution.? icon_rolleyes.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Jun 24, 2009 8:54 am
Reply with quote

Hi,

I missed the subject heading icon_redface.gif


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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jun 24, 2009 9:00 am
Reply with quote

gcicchet wrote:
I missed the subject heading icon_redface.gif
Sorry I missed the details. icon_redface.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 24, 2009 9:02 am
Reply with quote

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
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Thu Jun 25, 2009 9:27 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
Search our Forums:

Back to Top