Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Syncsort Replacing Hex value in Variable block

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort Replacing Hex value in Variable block
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: 6968
Location: porcelain throne

PostPosted: Wed Jun 24, 2009 2:04 am    Post subject:
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    Post subject:
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: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 24, 2009 3:07 am    Post subject:
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    Post subject:
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: 2285
Location: @my desk

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

subbuy2k,

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

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

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Jun 24, 2009 8:41 am    Post subject:
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: 2285
Location: @my desk

PostPosted: Wed Jun 24, 2009 8:47 am    Post subject:
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: 1703
Location: Australia

PostPosted: Wed Jun 24, 2009 8:54 am    Post subject:
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: 2285
Location: @my desk

PostPosted: Wed Jun 24, 2009 9:00 am    Post subject:
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

Site Director


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

PostPosted: Wed Jun 24, 2009 9:02 am    Post subject:
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: 500
Location: USA

PostPosted: Thu Jun 25, 2009 9:27 pm    Post subject: Reply to: Syncsort Replacing Hex value in Variable block
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts replacing junk with hyphen Nitin32 DFSORT/ICETOOL 10 Fri Jun 02, 2017 7:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us