I have a list of dr saves details made availaible on our intranet page.
I need to build a utility such thatthe input dates provided ,somehow gets the volume and seq number details from the webpage and access the db2 database accordingly.
I was thinking/learning pyhon on terms of using bs4 soup to scrape the data on webpage but now how do I get the data into iseries. Is this even possible ?
you can use the sql function
httpgetclobto read the contents of a web page.Here is sample code that uses
httpgetclobin ansql procedure. The procedure receives thehttpgetcloboutput into aclobvariable. Then it reads 256 byte chunks of that output, writing the chunks to an output file.here is the output file:
sql procedure that gets the contents of the web page and writes to the output table:
code that calls the procedure: