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

How can I Change Quote to Hyphen using SORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
NARAYANAM
Warnings : 1

New User


Joined: 22 Sep 2006
Posts: 5

PostPosted: Fri Jan 19, 2007 12:02 pm
Reply with quote

How can i CHANGE QUOTE TO HYPHEN using SORT. Please explain.


Thanking you,





Regards,
Narayanam Rama Rao.
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 Jan 19, 2007 2:48 pm
Reply with quote

Is the quote you want to change in fixed locations or just anywhere in the record?
Back to top
View user's profile Send private message
NARAYANAM
Warnings : 1

New User


Joined: 22 Sep 2006
Posts: 5

PostPosted: Fri Jan 19, 2007 2:53 pm
Reply with quote

i want to change Quote to Hyphen using SORT in entire Sequencial file i.e., where ever QUOTE is present.
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 Jan 19, 2007 3:15 pm
Reply with quote

I don't think you will have any luck with any sort, maybe another utility will be more suitable.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Jan 19, 2007 10:13 pm
Reply with quote

Narayanam,

You can use DFSORT's TRAN=ALTSEQ function to do what you want. I assumed you mean double quote " (X'7F') and hyphen (X'60') but you can use the hex values for any characters you need. I assumed your input file has RECFM=FB and LRECL=80, but the job can be changed for other attributes.

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//SORTOUT DD DSN=...  output file (FB/80)
//SYSIN    DD    *
  OPTION COPY
  ALTSEQ CODE=(7F60)
  INREC FIELDS=(1,80,TRAN=ALTSEQ)
/*
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top