Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to convert column to row

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Tue Mar 27, 2012 5:02 pm    Post subject: How to convert column to row
Reply with quote

Hi,

Could you please let me know if there are any techniques or any keywords used in sort card to convert columns to rows or vice verca.

I have a scenario where in I need the convert a column to row.

I/P file

Code:


ZIPCODES
---------

560001
560002
560003
560004
560005


O/P file should look like
Code:


ZIPCODES
----------

'560001','560002','560003','560004','560005'


Can this be obtained using SORT?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Tue Mar 27, 2012 5:24 pm    Post subject: Reply to: How to convert column to row
Reply with quote

You've posted in the JCL forum, which is where Syncsort questions go.

Do you have Syncsort?

EDIT: Also, do you have rules for which are to be blocked together, or is it just the entire file?
Back to top
View user's profile Send private message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Tue Mar 27, 2012 5:48 pm    Post subject:
Reply with quote

Yes I do have a SYNCSORT. I need to convert the column of the entire file.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Tue Mar 27, 2012 5:57 pm    Post subject: Reply to: How to convert column to row
Reply with quote

Try this one out.
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Wed Mar 28, 2012 10:34 am    Post subject:
Reply with quote

Hello,

As you posted, your O/P file displays with the records enclosed in quotes and comma was included to seperate the other records.

Is this also expected in your O/P file.
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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us