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
 

 

Untring a CSV File delimited by comma

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Aug 19, 2005 7:28 pm    Post subject: Untring a CSV File delimited by comma
Reply with quote

Dear Friends


I
Quote:
have a input record.it is in comma separated format(CSV format).
i want to untring it delimited by comma.
Now the problem is i don't want all the value.

Can it be possible to untring and get specific values only?


Thanks
Chandra
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Fri Aug 19, 2005 8:04 pm    Post subject: Re: unstring
Reply with quote

Chandra,

Your post here seems to be relatoed to the one going parallel for program logic.
Quote:
Now the problem is i don't want all the value.

Can it be possible to untring and get specific values only?


I m not sure about getting only specifc values...but let them come...Its up to you to use them or not....Isn't it....

Regards,

Priyesh.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Fri Aug 19, 2005 8:33 pm    Post subject:
Reply with quote

Yes priyesh
i have done lby taking all .Still i think to get specific value.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Aug 20, 2005 10:08 pm    Post subject:
Reply with quote

Why don't you show us some of your data and what you want to unstring and what you don't? Maybe there's a solution, but you've got to be specific.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Mon Aug 22, 2005 9:07 am    Post subject:
Reply with quote

Ok friends i am giving an Example


Quote:
01 record
05 ws-rq-id pic x
05 ws-b-id pic x
05 ws-al pic xxx
05 ws-a redefine ws-al
10 ws-z pic x
10 ws-y pic x
10 filler pic x
05 ws-b redefine ws-al
10 ws-m pic x
10 ws-n pic x
10 ws-h pic x


Now i want to unstring ws-a
in another step i want to unstring ws-b
It is a comma Separated file(CSV records)
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Mon Aug 22, 2005 10:08 am    Post subject: Re: unstring
Reply with quote

Hi,
U can unstring ur unnecessary fields to dummy variables and the necessary fields to ur working variables. So that u can use ur working variables in the next process of ur task.


Elonics.
----------------------------------------------------------------------------------
I May the Best or atleast Better than many but i am never Worst
----------------------------------------------------------------------------------
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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