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

FIELDSEP=TAB - Help needed


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

New User


Joined: 16 Oct 2008
Posts: 37
Location: chennai

PostPosted: Tue Jun 14, 2011 1:41 pm
Reply with quote

Hi All,

I have the below requirement.

Emp.No;Sal
101;10000
102;20000
103;10000

I want these fields to be in tab separated. Instead of ";" i need to have tab.

Can anybody help me in this.

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 14, 2011 1:47 pm
Reply with quote

why not help Yourself by expanding the solution YOU were given here
www.ibmmainframes.com/viewtopic.php?t=54549&highlight=
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Tue Jun 14, 2011 9:39 pm
Reply with quote

gayathrinag,
Can you have ';' in the data? If not, see if below helps...
Code:

//STEP0100 EXEC PGM=SORT               
//SYSOUT   DD SYSOUT=*                 
//SORTIN   DD *                         
101;10000                               
102;20000                               
103;10000                               
/*                                     
//SORTOUT  DD SYSOUT=*                 
//SYSIN    DD *                         
 OPTION COPY                           
  OUTREC IFTHEN=(WHEN=INIT,             
         FINDREP=(IN=C';',OUT=X'05'))   
/*                                     
//*                                     

OUTPUT
Code:

101.10000   
FFF0FFFFF4444
1015100000000
 ------------
102.20000   
FFF0FFFFF4444
1025200000000
 ------------
103.10000   
FFF0FFFFF4444
1035100000000
 ------------

Thanks,
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 Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts Mainframe profiles needed @ Cognizant Mainframe Jobs 0
No new posts COBOL Student learning COBOL File Han... COBOL Programming 3
Search our Forums:

Back to Top