Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Conversion of dataset to text format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
sureshgan

New User


Joined: 19 Jan 2006
Posts: 1

PostPosted: Thu Jan 19, 2006 9:42 am    Post subject: Conversion of dataset to text format
Reply with quote

i have a dataset having some 100 records and approximately 200 columns. i want to transfer the data to text format with a delimiter(say ~) in between each column so that I can make sense of the data.how can i do this?
Back to top
View user's profile Send private message
References
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1959
Location: Israel

PostPosted: Thu Jan 19, 2006 10:38 am    Post subject:
Reply with quote

If you can EDIT your dataset using ISPF editor, use edit commands (either in the editor itself or by edit-macro). For example: "C ALL ' ' '~' 15 15".

If the file is not editable, you can use a small REXX with the OVERLAY function.

O.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 489

PostPosted: Thu Jan 19, 2006 12:25 pm    Post subject: Re: Conversion of dataset to text format
Reply with quote

HI,

I also agree with ofer71, Or If you know the length of Column you can write a short program to eneter ~ in between cloumn.

Hope this helps

Regards
Rupesh
Back to top
View user's profile Send private message
Paddy

Active User


Joined: 12 Sep 2005
Posts: 54
Location: Paris France

PostPosted: Thu Jan 19, 2006 2:40 pm    Post subject:
Reply with quote

Hi all,

Another way directly with ISPF, if it's editable file, consists in to create a model line and to copy her with overlay argument like this

Code:

Command ===>,                                                ,Scroll ===>,CSR ,
******,***************************** Top of Data ******************************
C 0001,   ~    ~    ~      ~       ~       ~       ~       ~       ~
OO 002,001 aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
000003,002 aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
000004,003 aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
000005,004 aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
000006,005 aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
000007,006 aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
OO 008,00X aaaa bbbb cccccc fffffff ggggggg rrrrrrr ttttttt mmmmmmm
******,**************************** Bottom of Data ****************************


Result :

Code:

Command ===>,                                                ,Scroll ===>,CSR ,
******,***************************** Top of Data ******************************
000001,   ~    ~    ~      ~       ~       ~       ~       ~       ~
000002,001~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
000003,002~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
000004,003~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
000005,004~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
000006,005~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
000007,006~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
000008,00X~aaaa~bbbb~cccccc~fffffff~ggggggg~rrrrrrr~ttttttt~mmmmmmm~
******,**************************** Bottom of Data ****************************



Regards.

Paddy icon_smile.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1