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

How to get the URL which is placed randomly in a file.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dkarthikreddy

New User


Joined: 14 Mar 2008
Posts: 28
Location: bangalore

PostPosted: Wed Sep 02, 2009 11:55 am
Reply with quote

Hi,

I have a requirement like this.

In a file with record length of 80 i wil be getting a URL ( eg. Use [URL] BBCode for External Links ) and i dont know the position of it and this URL is preceded and succeded by some dots(..) or blank spaces.

Now i want to pick this and write it into output file using cobol pgm.

Could any one suggest how to do this.

Thanks
Karthik
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 02, 2009 3:49 pm
Reply with quote

Scan the variable using reference modification to find the www (assuming there is a www, of course)? URL names can be so variable that finding the end of it could be tough (.tv, .edu, .org, .com, country-specific endings such as .ca). Any chance you can get the application creating the file to put some kind of delimiter around the URL?
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top