cfquery MVS DB2 table that contains the BLOB column

Using ColdFusion MX 7. Capable of converting the BLOB in a string when the data source is in UDB (our database development) However, when the data source change to MVS DB2 (database Production and staging) model renders are more data on the screen.

model code snippet:
...
< cfoutput >
< name cfquery = "acct_selector" datasource = "#request.ds #" >
SELECT DISTINCT * from dbo. Account
where cf_token = ' #cftoken # ' and cf_pid = ' #cfid # ' and account_system! = « I »
order of account_num
< / cfquery >
< cfset acctname = arraynew (1) >
< cfset acctnumb = arraynew (1) >
< cfset i = 1 >
< cfloop query = "acct_selector" >
< cfset = account_name acctname >
< cfset acctnumb
= account_num >
< cfset i = i + 1 >
< / cfloop >
< cfset rpdt1 = dateformat(sDate,"yyyy-mm-dd") & "-00.00.00.000000" >
< cfset rpdt2 = dateformat(sDate,"yyyy-mm-dd") & "-23.59.59.999999" >
< name cfquery = "reflexReport" datasource = "#request.db2 #" >
Select reflex_rpt_id, account_num, report_tmstp, sequence_num, fk_report_typ, report_txt
of #request.db2qlfr # .gzb005_reflex_rpt
where (< cfloop query = "acct_selector" > account_num = "#account_num #" or < / cfloop > account_num = '0' ")
and report_tmstp > = "#rpdt1 #" and report_tmstp < = "#rpdt2 #
< / cfquery >
< / cfoutput >

< cfif reflexReport.recordcount gt 0 >
... (constructed here report headings)...
< cfoutput query = "reflexReport" >
< cfset rpdata = tostring (report_txt) >
....

I know that there are lines that are selected in the cursor, because headers are displayed on the browser page. If no row is selected the process appears a user informed alert window there is no data to report for the selected date.

I had a misunderstanding of what version of DB2 my request was connect on Z/OS. It turns out that it's the best before DATE of DB2 for Z/OS 7.1.0 which does not support BLOB of CFMX 7. We ended up writing a call to a J2EE servlet that calls existing methods within a service.

Tags: ColdFusion

Similar Questions

  • Prepare a document to insert a row that contains the Blob column. Is what sense this correct?

    When we prepare the statement to insert a row that contains the Blob column. Is what sense this correct? And what is the difference? Does anyone know?

    1 Preparestatement.setBlob(parameter number, blob type object)

    2 Preparestatement.setBlob(parameter number, inputstream type object)

    This link shows the test I did.

    https://community.Oracle.com/thread/3680185?SR=Inbox & customTheme = OTN

    When we prepare the statement to insert a row that contains the Blob column. Is what sense this correct? And what is the difference? Anyone know?

    1 Preparestatement.setBlob(parameter number, blob type object)

    2 Preparestatement.setBlob(parameter number, inputstream type object)

    I answered in your other thread and provided a link to the JDBC Dev Guide section, which explains how to work with type LOB and BFILE data.

    Have you read this article from doc?

    Did you read my response to your other thread?

    In java, a BLOB is just the index that gives you access to the content. In your case, you access by selecting a locator BLOB existing and getting his inputstream. This inputstream is what allows you to access the content real blob.

    The Locator is just that; It specifies the LOCATION of the blob content, but NOT the content.

  • Looking for table that contains line_id SB between promotional item and its elements of Get

    Hello!

    I'm looking for the table that contains the s.o. row between the advertising object and its elements Get ID after the modifier is applied to a sales order. In fact, I'm looking for a table that will show me that s.o. line_id _ is the promotional item and l.o. line_id _, _, _ are the elements of Get.

    Thanks in advance

    OE_PRICE_ADJUSTMENTS and OE_PRICE_ADJ_ASSOCS are the tables you are looking for.

    Thank you.

  • What is the solution to add is not null to an existing table that has the data

    I have an employee table that contains the data that I want to change the column NOT NULL .i get error saying e-mail
    table cannot be changed when the data is there... any other solution for this?

    I have an employee table that contains the data that I want to change the column not NULL.
    I get error message saying table cannot be changed when the data is there... any other solution for this?

    Create a new column that can contain NULL.
    New column UPDATED with the old data
    remove the old column
    Rename new old column_name column

  • How to stop the blob column don't affect display performance.

    Hello
    I have an external table that has a blob column. The table has at present about 40 recordings that the blob column is reading in some 150 MB total records. When I try to view the external table performance is terrible, takes to always display the table. I thought far around from this would be to create a view that would leave the blob column, in an attempt to show folders quickly, but it has no impact on performance.

    Is it possible to create the view that returns the columns I want quickly for these 40 weird files?

    Ben

    Benton says:
    Hello
    I have an external table that has a blob column. The table has at present about 40 recordings that the blob column is reading in some 150 MB total records. When I try to view the external table performance is terrible, takes to always display the table. I thought far around from this would be to create a view that would leave the blob column, in an attempt to show folders quickly, but it has no impact on performance.

    Is it possible to create the view that returns the columns I want quickly for these 40 weird files?

    Ben

    You can try to create 2 external tables out of this file, without the BLOB column and another containing the BLOB column.

    Then query the external table BLOBless when you have no need for the BLOB.

  • A script to remove all rows in the table that contains a specific text

    Hello

    I tried some old scripts but cannot move to the right solution.

    I need a script that deletes all the rows in a table that contains a specific unique word text, something like "xxx".
    Someone has an idea?

    Thank you

    Hello

    To remove a line using row.remove () method.

    Iterate if table.rows and delete the matching condition.

    If we talk about condition, be more specific - what do you mean "a line contains a text:

    ==> 1st cell contains,

    ==> any cell contains.

    Content of the line whole is an array of his cells.contents, so your text from line 1 is:

    rows [0].contents.join ("") ==> string

    Jarek

  • Cell that contains the formula paste between spreadsheets

    How do I paste the value of a cell that contains the result of a spreadsheet formula has, in a worksheet cell B and still have the operation of the formula? OS 10.11.14, numbers 3.6.1.

    Hi dad,

    It depends on what you mean by "still have the operation of the formula."

    If simply paste you it into a new table in another document, the formula will be stuck more or less intact, but it will not reference all the cells on the original table. If he refers only the cells on the table where he came from, he can refer to these same cells or cells in the same position relative to the new location on the table to which it is glued. You will have probably the best success with her work on the new table, if you copy and then paste the formula itself, rather than the containing cell.

    Repeat what I have not quite clear in the first line: the numbers documents cannot reference cells in other documents of numbers.

    Kind regards

    Barry

  • Y at - it a table that lists the views created

    Hello!

    I created a view using CREATE or REPLACE, but I forgot to check first if the view name already exists. Since I used the option to replace, if it was be a existing view with the same name, it is automatically replaced by my point of view.

    I want to assure you that I have doesn't replace an existing view. Is there a table that contains a list of all the views created?

    Thank you.

    Select * from user_views OF TIMESTAMP (sysdate-1/24) where view_name = 'MY_VIEW '.

    -to see if a view of that name existed there is 1 hour.  If that were the case, then your REPLACE or ovewritten who discovers.

    Similarly, you can ask about user_objects

    Hemant K Collette

  • I downloaded an e-mail that contains the music, I deleted the email, but the music continues to play despite having deleted the history etc.

    I down loaded an e-mail that contains the music, I deleted the email, but the music continues on whwenever game that I connect despite having deleted the history etc.

    {Ctrl + J} t0 open downloads window. Right click on this audio file, and then click remove from the list of

  • How to create a formula that highlights the cell that contains the same data that I type in another cell

    Hi, can someone help me make a formula which detects and highlights the value of the cell that contains the items of data that I entered in another cell? Thank you

    resolved to myself

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

  • Hi, I use iTunes 12.3.2.35 on a Windows 7 computer. I don't seem to be able to import files from a CD that contains the files on it as mp3 files. If I launch iTune and then put the CD in, it doesn't appear and I can't drag and drop.

    Hi, I use iTunes 12.3.2.35 on a Windows 7 computer. I don't seem to be able to import files from a CD that contains the files on it as mp3 files. If I start iTunes and then put the CD in, it doesn't appear and I can't drag and drop.

    It would not seem like an audio CD, as a drive in this way is a data disc when it contains mp3 files. You would need to access the file menu in iTunes, manage files here. If you manually manage music, you will need to access it as a regular folder on your computer. In iTunes, go to file > add file to library, and select individual files.

  • The feature you are trying to use is on a network that is not available. Click OK to try again or enter a different path to the folder that contains the installation packagr 'TrayApp.msi'

    Original title: trayapp

    When I open the computer message appears, the component you are trying to use is on a network that is not available. Click OK to try again or enter a different path to the folder that contains the installation packagr 'TrayApp.msi' in the box below.
    C:\Users\user\AppData\Local\Temp\7zS5216\setup\TrayApp\
    When I click ok the message this way that c:\users\user\appdata\local\temp\7zs5216\setup\trayapp\ is not found. Verfy that you have access to this location and try again or try to find the 'TrayApp.msi' in installing a package file from which you can install the product'TrayApp.
    When I try to cancel the warning message, is that an installation package for the TrayApp product is not found. Again the installation again using a valid copy of the 'TrayApp of installation' package. I already uninstalled all HP products, but this message is still bothering me, how to solve this problem?

    Hey Tama,


    -What version of windows is installed on the computer?
    -Have there been recent changes to the computer before the show?
    I recommend you go through the next HP document and check if it helps.
    Hope this information is useful.
  • I can't read a CD that contains the UDF files on my Windows 7 system.

    I can't read a CD that contains the UDF files on my Windows 7 system.  When I try to open them, I get a message saying that I need a special software to fix it. but when I try to download this software (C2UDFFS. (SYS) I get "cannot copy file in the destination directory."  Would be grateful for any help.

    Try this link: -.

    http://support.Microsoft.com/kb/975617

    It will be useful.

  • Printing of documents that contain the letter and legal-size pages - Laserjet 600 M602

    We have a printer Laserjet 600 M602, that does not automatically select a tray to print every time someone tries to print a document that contains the letter so many pages of legal size.  The default printer for the Tray 1 (Manual power) and the user will have to walk over to the printer and the printer to select the correct tray.  I went in the printers settings via the web interface and I set the tray settings to the following: Tray 1 - any Type of Size/Any, bin 2 - letter/plain, plateau 3 - legal/Plain and it still does not print correctly.  Unfortunately for the printer settings, it was on that I'm comfortable doing.  I read the print driver may have changed, but we use the driver included with the disc and I guess that it would be sufficient that this driver.  Does anyone know of some setting that I might be able to change the printer or if it is indeed a print driver problem?  Any comments would be appreciated.

    Thank you

    I was able to receive help this morning from HP support.  He turns out, there were two things that I needed to change.  The first is that when printing from a pdf file, there is an option in the print area for "Choose paper according to the size of PDF page source" and the second thing, it was with the printer printing preferences.  In the printing preferences, under the "Printing shortcuts" tab, the paper Type has been set to Prepunched.  We changed this Unspecified.  After making these two changes, the user is able to print correctly in the printer.

Maybe you are looking for

  • Disconnect my Mac overnight?

    I have a Mac mini from 2012 which is connected to a power strip. To save energy, I've been putting off the computer and then turn off the power strip night when I'm not using it. I recently discovered this means that I am the scene a SMC reset every

  • Satellite L10-194: need other drivers and WiFi

    Hello I am trying to determine the correct drivers WiFi for my laptop Toshiba Satellite L10-194. There seems to be at least 4 different drivers available, but I have no way to determine what network card, I installed it as the hard drive has been wip

  • WPS WNDR3400v3 flashing on its own

    I looked but could not find something similar. I woke up two days and my wps light was flashing green on its own. It is above all the high wall so I cam see in my room and she flickered not standby or sign anything. I woke up and it was flashing gree

  • How to remove the Welcome screen in Windows XP?

    Original title: photo of STONEHENGE - not the screensaver How can I remove the "Stonehenge" image that appears BEFORE the Microsoft Welcome screen? This isn't a screen saver.  I don't have a screensaver running. Athena Hu

  • Computer crashes and repeated pixels to display on screen

    I have a laptop HP 3 years (windows xp) that was freezing after use of one hour of Pandora on firefox (sounded like he was constantly running all the time).  It got progressively worse (more frequent and longer periods of time) and a gel started towa