Sybase @@rowcount not converted properly

I have converted multiple Sybase procedures with OMWB 1.2.2.0 where the @@rowcount does not work properly. Take the following Sybase procedure for example:
CREATE PROCEDURE el_REP_GetAllAccts
@GroupCode int
,@PeriodBegin datetime
,@PeriodEnd datetime
AS
DECLARE @UserLogon char(30),
@ErrorNum int,
@ErrorSource char(50),
@Description varchar(255),
@Description1 varchar(255)
,@AccountList int
,@Role char(1)
,@Group int
,@RowCnt int
SELECT ag.account_id
,ag.role_code
,ac.name
FROM account_group ag
,account ac
WHERE @PeriodBegin >= ag.in_start
AND @PeriodEnd <= ag.in_end
AND ag.account_id = ac.account_id
AND ag.group_id = @GroupCode
ORDER BY ac.name
select @RowCnt = @@rowcount
RETURN @RowCnt
This was converted to a function, with a package for the REF CURSOR result set:
-- BEGIN PL/SQL BLOCK --------------------------------
CREATE OR REPLACE PACKAGE EL_OWNER.EL_REP_GETALLACCTSPkg AS
TYPE RT1 IS RECORD (
account_id account_group.account_id%TYPE,
role_code account_group.role_code%TYPE,
name account.name%TYPE
TYPE RCT1 IS REF CURSOR RETURN RT1;
END;
-- END PL/SQL BLOCK ----------------------------------
-- BEGIN PL/SQL BLOCK --------------------------------
CREATE OR REPLACE FUNCTION EL_OWNER.EL_REP_GETALLACCTS (
GroupCode NUMBER ,
PeriodBegin DATE ,
PeriodEnd DATE ,
RC1 IN OUT EL_REP_GETALLACCTSPkg.RCT1)
RETURN INTEGER
AS
StoO_selcnt INTEGER;
StoO_error INTEGER;
StoO_rowcnt INTEGER;
StoO_crowcnt INTEGER := 0;
StoO_fetchstatus INTEGER := 0;
StoO_errmsg VARCHAR2(255);
StoO_sqlstatus INTEGER;
UserLogon CHAR(30);
ErrorNum NUMBER(10,0);
ErrorSource CHAR(50);
Description VARCHAR2(255);
Description1 VARCHAR2(255);
AccountList NUMBER(10,0);
Role CHAR(1);
Group_ NUMBER(10,0);
RowCnt NUMBER(10,0);
BEGIN
BEGIN
StoO_error := 0;
StoO_rowcnt := 0;
OPEN RC1 FOR
SELECT ag.account_id, ag.role_code, ac.name
FROM account_group ag, account ac
WHERE el_REP_GetAllAccts.PeriodBegin >= ag.in_start
AND el_REP_GetAllAccts.PeriodEnd <= ag.in_end
AND ag.account_id = ac.account_id
AND ag.group_id = el_REP_GetAllAccts.GroupCode
ORDER BY ac.name ;
SELECT 1 INTO StoO_rowcnt FROM DUAL
WHERE EXISTS (SELECT ag.account_id, ag.role_code, ac.name
FROM account_group ag, account ac
WHERE el_REP_GetAllAccts.PeriodBegin >= ag.in_start
AND el_REP_GetAllAccts.PeriodEnd <= ag.in_end
AND ag.account_id = ac.account_id
AND ag.group_id = el_REP_GetAllAccts.GroupCode );
EXCEPTION
WHEN NO_DATA_FOUND THEN
StoO_rowcnt := 0;
StoO_selcnt := 0;
WHEN OTHERS THEN
StoO_rowcnt := 0;
StoO_selcnt := 0;
StoO_error := SQLCODE;
StoO_errmsg := SQLERRM;
END;
el_REP_GetAllAccts.Rowcnt := StoO_rowcnt;
RETURN el_REP_GetAllAccts.Rowcnt;
END el_REP_GetAllAccts;
-- END PL/SQL BLOCK ----------------------------------
The above @@rowcount conversion will not work. StoO_rowcount will always only contain 1, if any rows were selected. RC1%ROWCOUNT also will not work, because now rows have been fetched from the REF CURSOR.
Does anyone know of any other conversion possibilities that would be more efficient than repeating the same query except performing a count(*) to find out a rowcount?
Thanks,
-Mark

Please delete this.

Similar Messages

  • Some images and handwritten content not converting properly

    Some images on a pre printed pdf form and hand written details on a form are not converting properly and come out as rubbish.
    Can this be fixed?

    Hi
    thanks - I will try a different browser, but attached are the two forms.  they both have a handwritten element with a signature or the client completing the one with boxes by putting x's in the boxes to answer the questions.  This is what is not working.  It all comes out mixed and changed.
    Thanks.
    Sam

  • Videos not converting properly

    I own an iPod Classic.  In iTunes, some podcast videos cant be played on teh iPod, so I set it to convert the video to the right format for the iPod.  It used to work perfectly, but now for some reason, it doesnt convert properly!  When I play the video, it is just a white screen, but the sound can be heard.  Can anyone help??????

    I have the problem playing the MP4 file from the GoPro Here 4 session on OS 10.3.1. I hope the support will take care of that. I can give a short MP4 video that is not played at all on my both Z30 and Classic with OS 10.3.1 (an error message about error that has occured during opening or playing the file appears)...

  • Please refund. Not converting properly.

    please refund not converting my file properly

    Thanks for getting back to us John.
    My apologies for what perhaps was an inaccurate expectation
    set by TS.
    With Acrobat.com, your conversion *options* are slim. Infact
    there aren't any options for the conversion, other than, would you
    like to convert, yes or no :)
    To help us work to make the conversion process better, would
    you mind emailing us one of your Word docs with the links that
    isn't converting properly, and maybe a converted PDF with the link
    trouble in it as well to sharedoc[at]adobe.com ?
    That way we can have a look at it, and while not offering a
    solution, we will be able to improve our conversion accuracy, going
    forward.
    Your other options for Word-2-PDF conversion would be, since
    you're wanting to use part of Acrobat.com.... to use more of
    Acrobat.com in your workflow. Depending on what is inside the word
    doc, you could see if Buzzword will be able to import your word
    doc, and then display it, allow you to edit the imported file, and
    then export to PDF (with links) directly from Buzzword
    Or an option is to download the
    Acrobat 9
    30-day trial. Which will give you at least 30 free days of PDF
    making functionality.
    Hopefully this post will give you enough information to be
    able to move forward!
    All the best,
    Pete

  • Hyperlinks not converting properly

    Hello, I have a Word document with embedded hyperlinks. For
    example I'll have a "click here" and the click here will point to a
    website. When I convert the file, the PDF has a small hand like it
    knows it's a link. But the hand has a W (word logo). The link never
    opens. I'm hoping I'm just missing a setting or something. Any help
    is appreciated.

    Thanks for getting back to us John.
    My apologies for what perhaps was an inaccurate expectation
    set by TS.
    With Acrobat.com, your conversion *options* are slim. Infact
    there aren't any options for the conversion, other than, would you
    like to convert, yes or no :)
    To help us work to make the conversion process better, would
    you mind emailing us one of your Word docs with the links that
    isn't converting properly, and maybe a converted PDF with the link
    trouble in it as well to sharedoc[at]adobe.com ?
    That way we can have a look at it, and while not offering a
    solution, we will be able to improve our conversion accuracy, going
    forward.
    Your other options for Word-2-PDF conversion would be, since
    you're wanting to use part of Acrobat.com.... to use more of
    Acrobat.com in your workflow. Depending on what is inside the word
    doc, you could see if Buzzword will be able to import your word
    doc, and then display it, allow you to edit the imported file, and
    then export to PDF (with links) directly from Buzzword
    Or an option is to download the
    Acrobat 9
    30-day trial. Which will give you at least 30 free days of PDF
    making functionality.
    Hopefully this post will give you enough information to be
    able to move forward!
    All the best,
    Pete

  • Converting PDF to Word,(for translation from German to English) will not convert properly missing, g

    I have attempted to convert a document that is on A4 size paper from, a JPEG.TIFF.PDF.OPD in order to put it into a word document to input into my translation software. The software that I have to use will only accept the document in a word format,and everytime that I attempt to convert it to a word document, the pages do not line up properly, the texts is all garbled, some is missing or on top of other text, the fonts are all wrong and half the pictures to not show up, I have been attempting to do this for almost 2 months with every possible type of software that I can find, OCR, Paper Port, Adobe, Scan Soft, I need help it is driving me crazy.

    OCR the original using ClearScan. That replaces the images with text. Then save as a DOC file.

  • Paragraph borders in Word not converting properly

    I have used dotted left hand and top of paragraph borders in a word document (docx). When I turn it into a PDF file the left hand dots become dashes and the dots across the top of the paragraph are distorted. this is a serious problem for me as I'm working with a series of files that will end up being a 600 page document.
    Any ideas for why this is happening?

    I can understand your thinking but on this occasion I do see Adobe's problem. You are converting a document formatted with Word code into an HTML format. To do that Rh has to tell Word to convert the document to HTML and that is done using Word's option to Save As and saving in HTML format. Rh is thus faced with the way that Word saves the document and the HTML Microsoft creates. Generally that is not squeaky clean HTML but Rh has to take what it is given.
    Rubbish in = rubbish out.
    Log it with Adobe but whether it is a Bug Report or a Feature Request is debateable.
    Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Excel borders not converting properly into PDF

    Hello,
    I am using Excel 2010 on a PC. I have a double line borders on all my tables. When I convert them to PDF the double lines blur together into one line unless I zoom out pass 100%. I thought I fixed the issue by making the border a darker color but when I imported the PDF into indesign they blur together again and most of them print out that way. (The document I am working on will eventually both be on the web and in print).
    This does not happen with every table and I can't figure out what the difference is between a table that works and one that doesn't. I've played around with the smooth lines with limited results. Below is one of the tables where the double line on top blurs together.
    Thanks!

    Are you printing or using PDF Maker? What job settings are you using? What version of Acrobat? Have you tried using the Press or Print job settings? There may also be an issue with the default display resolution used in the Settings (typically at 1200 dpi) -- I use 300 dpi.

  • Topichead does not convert properly when ditamap saved as book and hierarchy not maintained

    I'm new to DITA and piloting some documents in FrameMaker 12, trying to get the output that I need.
    I have created a ditamap with a structure as follows:
    Map title
    - Concept A
    - Topichead
       - Task A
       - Task B
    - Concept B
      - Task C
       - Task D
    I would like this to ouptut a PDF with TOC and bookmarks as follows:
    Map title => book title
    - Concept A => Chapter 1
    - Topichead => Chapter 2
       - Task A => Chapter 2.1
       - Task B => Chapter 2.2
    - Concept B => Chapter 3
      - Task C => Chapter 3.1
      - Task D => Chapter 3.2
    To do this I save the ditamap as a "Book 12.0 with fm components (*.book)" and set the Bookmark levels in the PDF Setup as follows:
    ChapterTitle
    head.0
    Title
    title.0
    .title.1
    ..title.2
    ...title.3
    However, the output systematically comes out wrong because the Topichead element, which is just a title and is not attached to any topic, is not taken into account as a hierarchical element in the output. It generates an empty fm document containing just the topichead title, output as a ChapterTitle or Title depending on whether I set its toc attribute to yes. But the TOC is all wrong - instead of taking Task A and Task B as children of Chapter 2 it puts them all at level 1 so I get:
    - Concept A => Chapter 1
    - Topichead => ignored
       - Task A => Chapter 2
       - Task B => Chapter 3
    - Concept B => Chapter 4
      - Task C => Chapter 4.1
      - Task D => Chapter 4.2
    If I output using the bog-standard DITA-OT instead of fancy and expensive FrameMaker, everything comes out correctly.
    Is there any way to correct this?
    Thanks,
    Archaeopteryx

    Hi Archaeopteryx...
    I beieve that FM only uses the elements from topics to create the output .. as you're seeing, headings in the map are ignored. I also believe that the process that FM uses to aggregate the topics into FM files is hard-coded somewhere in the DITA plugin, and not exposed for modification .. so aside from developing a plugin to modify the process, I think you're out of luck if you're using the default DITA support. The only solution would be to include title-only topics in the structure that provide those headings rather than using a topichead.
    However, you might want to check out DITA-FMx, in which the aggregation process is controlled by XSLT that you are free to modify. The default book-build process in DITA-FMx also ignores these map elements, and assumes that all content is defined in topics, but you could tweak the XSLT to include topicheads as topic headings in the generated book.
         http://leximation.com/dita-fmx/
    Thanks,
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • SAP special german characters(umlaut) like ü, ö, ä not displayed properly in XML output

    Hello Team,
    Here we are facing issues while converting SAP tables data to XML file.
    the description is not converting properly for the special German characters like ü, ö, ä.
    Actual output should be :Überprüfung nach § 29 STVZO
    Output Displayed :Ã#berprüfung nach § 29 STVZO
    Can you please look into and help me in this to get correct output .
    Thank you.

    Hi,
    Unicode or Non-Unincode System ?
    Displayed where ? SAPGUI ? Print Preview ? Spool-Display ?
    And how is the XML file written ?  OPEN DATASET ? BAPI ?
    At all of these stages it might be either that it is only a display system, like the selected display CHARSET in SAPGUI, when it is a non-unicode system, or simply not coded correctly like OPEN DATASET without specifying the cdepage when necessary.
    And it might even be, that even "displaying" the XML File is simply done with the incorrect codepage while the data inside the file is correct.
    If you are on Windows, you might even face funny results when saving a simple textfile from notepad with ANSI/DOS and both Unicode variants and then go to CMD.EXE ans simply "type" the content.
    All 4 results will be different, allthough notepad will display the same stuff.
    So first of all, makes sure which codepage is relevant at all stages from DB-table to "display"
    - DB-Charset
    - SAP system type (unicode/non-unicode)
    - SAP codepage (1100 / 410x )
    - crosscheck the test from report RSCPINST
    - Codepage on Windows running SAPGUI
    - Selected codpage for Sapgui
    Good hunting
    Volker

  • Hyperlinks not working properly in PDF, converted by Nuance PDF converter

    I have encountered a problem with the pdf files which were converted by the Nuance PDF converter(v8.1).
    When reviewing a pdf file in Adobe Reader X(v10.1.0) the hyperlinks are not working properly in the "fit to window width and enable scrolling" mode.
    The second one, "fit one full page to window", is working without problems. In this mode all links can be used.
    Attached is a screenshot about the two modes in Adobe Reader X.
    This issue is just happening, if the file is converted by Nuance PDF converter.
    Well, Nuance support was not helpful at all.
    Regards

    just the "alias hyperlinks"(don't know the specific name) are not working.
    if I write down www.hp.com it's just fine.
    i've uploaded documents..
    one is created with nuance pdf converter and the other with MS Office Word "save as pdf" function.
    http://www.filedropper.com/linktestdocumentnuanceconverted
    http://www.filedropper.com/linktestdocumentofficesafeas
    so it seems like that nuance is not supporting "alias hyperlinks"..

  • Content Not Coming Properly after converting a Smartform to PDF.

    I am converting a smartform into PDF format using CONVERT_OTF .
    This smart form will be triggered from the portal at the occurance of an event .After Conversion some texts are properly outputted in the PDF but some texts which are in  arabic are not coming properly ( shows some junk data in a language other than Arabic).
    Can any give a Solution ??
    Thanks
    Chaitanya Sharma
    Edited by: chaitanya  sharma on Jan 28, 2009 2:15 PM

    hi
    try using this fm CONVERT_OTF_2_PDF
    hope this helps
    regards
    Aakash Banga

  • Amount not converted in words properly

    hi friends we are creating the import PO but the amount of the PO is not converted into the words properly.where could be the problem

    i have checked . IN_WORDS is the output parameter.SPELL_AMount is used . a part of the code is:
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    AMOUNT    = amount
    CURRENCY  = ZXEKKO-waers
    LANGUAGE  = SY-LANGU
    IMPORTING
    IN_WORDS  = in_words
    EXCEPTIONS
    NOT_FOUND = 1
    TOO_LARGE = 2
    OTHERS    = 3.
    endif.
    select single * from TCURT into wa_tcurt where spras = sy-langu and WAERS =
    ZXEKKO-waers.
    condense in_words-word.
    condense in_words-decword.
    if ZXEKKO-waers <> 'INR'.
    translate in_words-word to lower case.
    translate in_words-decword to lower case.
    translate in_words-word(1) to upper case.
    concatenate wa_tcurt-ktext in_words-word 'and' in_words-decword 'only'
    into in_words-word
    separated by space.
    find substring 'cents' in in_words-word.
    if sy-subrc = 0.
    replace substring 'cents' in in_words-word with space.
    endif.
    find substring 'only' in in_words-word.
    if sy-subrc = 0.
    replace substring 'only' in in_words-word with space.
    endif.
    concatenate in_words-word 'cents' 'only'
    into in_words-word
    separated by space.

  • What to do when file will not convert a PDF to Word "properly"?

    Is there anything I can do when a file will not convert from PDF to Word (for editing purposes)?
    It converted some of it fine, but most of it is converted into symbols and letters of some text has been changed.

    Hi Michelle ,
    You can simply edit that file in Acrobat itself .
    Or if you could brief us little more about your requirements ,we would be able to assist you intelligently .
    Regards
    Sukrit Dhingra

  • Quicktime does not convert my .MOV file into a watchable format on Quicktime

    Hi guys!
    I won't give you all a long sob story but basically, I went to my first music festival over the weekend and uploaded my videos onto my friends computer, I then uploaded these videos (i took with my iPhone) to Google Drive. When i got back onto my own computer, I download the .MOV files from Google Drive, these videos would not convert into a watchable format. It gives me the message -
    "QuickTime Player can't open "IMG_8788.MOV". To see if additional software is available that will enable QuickTime Player to open the movie, click Tell Me More."
    It says that Quicktime should support MOV files. I am using version 10.3 Quicktime player with iOS Mavericks. I really want help with this issue as I will be devastated if these videos are lost. My friend obviously deleted them off his computer because they did take up alot of space!

    I won't give you all a long sob story but basically, I went to my first music festival over the weekend and uploaded my videos onto my friends computer, I then uploaded these videos (i took with my iPhone) to Google Drive. When i got back onto my own computer, I download the .MOV files from Google Drive, these videos would not convert into a watchable format. It gives me the message -
    "QuickTime Player can't open "IMG_8788.MOV". To see if additional software is available that will enable QuickTime Player to open the movie, click Tell Me More."
    It says that Quicktime should support MOV files. I am using version 10.3 Quicktime player with iOS Mavericks. I really want help with this issue as I will be devastated if these videos are lost. My friend obviously deleted them off his computer because they did take up alot of space!
    iPhone recorded files should already be compatible QT X v10.3 (and QL) as is in the MOV file container. However, the process of downloading, uploading, and again downloading the files may have created some sort of issue causing QT X to not properly "recognize" the content and thus, wants you to check for additional support.
    In any case, will the files open in any other media players? (E.g., VLC, MPlayerX, NicePlayer, QT 7, MPEG Streamclip, etc.) For instance, if the files open in QT 7 Pro, MPEG Streamclip, or VLC, you may be able to copy the data to a new MOV file container which QT X will open and play. (I.e., this procedure does not recompress the data and is reasonable quick. Also not sure if using the "Command-D" Finder option to "duplicate" the file will create a "readable" file or not but you might try it.)

Maybe you are looking for

  • My iPod isn't showing up in my iTunes?

    My iPod has been discharged for a while because it wouldn't show up in my iTunes library.It said to keep it on the charger for about 30 minutes. After an hour I came to check on it and it still was not recognizing it. I went on Youtube and seen it ha

  • Final Cut Pro X crash on launch

    Need SERIOUS HELP! Running Lion on a new iMac (fully updated) and have been working on a project in Final Cut Pro X (also latest version) and it WILL NOT launch now - it crashes after "Restore Window" layout dialogue box. I have chosen DO NOT RESTORE

  • How can I see the selected tags in the tag bar clearly

    How can I see the selected tags in the tag bar clearly (they used to be in black, now they do not change color; a highlight or Bold would help)

  • Error while clearing vendor code 456215

    Please refer below screen shot, please help to check and advice. 1.Use T-44 to clear the below transaction due to wrongly input the qty in energy surcharge. 2.When posting, showing below message. express document update was terminated received from a

  • Oracle Client for Windows 2008 R2 server to connect to Oracle database 9iR2

    Hi, We are running Oracle 9.2.0.7 on Sun solaris (64 Bit) 5.10 and trying to install client on new Windows 2008 R2 (64 - bit) server. (Before this 2008 R2 we were using Windows 2003 32 bit and 9iR2 client was working great.) I can't install 9iR2 clin