METHOD4의 INTERNAL/EXTERNAL DATATYPE & COERCING DATATYPE(SQLPRC)

제품 : PRECOMPILERS
작성날짜 : 1998-05-14
METHOD4에서는 DATA TYPE을 변경해주어야 하는 경우가 있으므로
INTERNAL DATATYPE과 EXTERNAL DATATYPE이 어떻게 다르고 이것이
어떻게 이용되는지 알아야 한다. 그리고 특해 SQLDA->T의 값이
각 TYPE의 숫자로 들어가므로 아래의 내용을 참조하여 DATA TYPE을
유추해야한다.
<< Internal Datatype >>
VARCHAR2          1
NUMBER               2
LONG               8
ROWID               11
DATE               12
RAW               23
LONG RAW          24
CHARACTER(or CHAR)     96
MLSLABEL          106
<< External Datatypes >>
VARCHAR2          1
NUMBER               2
INTEGER               3
FLOAT               4
STRING               5
VARNUM               6
DECIMAL               7
LONG               8
ROWID               11
DATE               12
VARRAW               15
RAW               23
LONG RAW          24
UNSIGNED          68
DISPLAY               91
CHARACTER(or CHAR)     96
MLSLABEL          106
<< Coercing Datatype >>
internal 과 external datatype간의 변경이 어려울때가 있다.
(NUMBER를 FLOAT으로 바꾸는 경우) 이럴경우 select-list는
DESCIBE SELECT LIST이후 FETCH이전에 T값을 다시 지정해 주어야 하고,
bind descriptor는 DESCRIBE BIND VARIABLES전에 값을 지정해 준다.
이때 L값도 같이 지정해준다.
== 예 ==
DATE type을 select-list item으로 DESCRIBE할경우 oracle은 12를
T값에 지정하고, 7byte의 internal format을 return한다.
그러므로 DD-MON-YY type으로 값을 얻기 위해서는 T를 1 또는 5로하고
L을 9또는 10으로 맞추어 주어야 한다.
NUMBER type역시 마찮가지이다. Internal format이 return될것이므로
그 자체로는 알아보기가 쉽지 않다. 그러므로 T값을 1,3,4,5등으로 맞추어
주고 sqlprc()를 이용한다.
이때 platform에 알맞은 값은 sqlprc.h를 참조한다.
Sqlprc ( long length, int precision, int *scale );
length          L에 저장되어 있는 NUMBER값의 길이.
Precision     NUMBER값의 precision. 0값은 표현할수 없는 값이 있을때
          생기는데 이경우에는38을 넣어 준다.
Scale          NUMBER값의 scale. 반올림되는 자리수이다. scale이 2이면
          소숫점 두자리 아래에서 반올림하고 -3이면 천자리에서
          반올림한다.
만약 precision ==> 3, scale ==> -2 이면 숫자의 최대크기는 99900이다.
/* Declare variables for the function call */
sqlda     select_des; / pointer to select desctiptor */
int      prec;     /* precision */
int      scal;     /* scale */
extern void sqlprc ( ); /*Declare library function */
/* Extract precision and scale */
sqlprc ( *&(select_des->L[I]), &prec, &scal );
/* Allow for maximum size of NUMBER */
if (prec == 0)
     prec = 38 ;
/* Allow form possible decimal point and sign */
select_des->L[I] = prec + 2;
if (scal < 0 )
select_des ->L[I] += -scal;

제품 : PRECOMPILERS
작성날짜 : 1998-05-14
METHOD4에서는 DATA TYPE을 변경해주어야 하는 경우가 있으므로
INTERNAL DATATYPE과 EXTERNAL DATATYPE이 어떻게 다르고 이것이
어떻게 이용되는지 알아야 한다. 그리고 특해 SQLDA->T의 값이
각 TYPE의 숫자로 들어가므로 아래의 내용을 참조하여 DATA TYPE을
유추해야한다.
<< Internal Datatype >>
VARCHAR2          1
NUMBER               2
LONG               8
ROWID               11
DATE               12
RAW               23
LONG RAW          24
CHARACTER(or CHAR)     96
MLSLABEL          106
<< External Datatypes >>
VARCHAR2          1
NUMBER               2
INTEGER               3
FLOAT               4
STRING               5
VARNUM               6
DECIMAL               7
LONG               8
ROWID               11
DATE               12
VARRAW               15
RAW               23
LONG RAW          24
UNSIGNED          68
DISPLAY               91
CHARACTER(or CHAR)     96
MLSLABEL          106
<< Coercing Datatype >>
internal 과 external datatype간의 변경이 어려울때가 있다.
(NUMBER를 FLOAT으로 바꾸는 경우) 이럴경우 select-list는
DESCIBE SELECT LIST이후 FETCH이전에 T값을 다시 지정해 주어야 하고,
bind descriptor는 DESCRIBE BIND VARIABLES전에 값을 지정해 준다.
이때 L값도 같이 지정해준다.
== 예 ==
DATE type을 select-list item으로 DESCRIBE할경우 oracle은 12를
T값에 지정하고, 7byte의 internal format을 return한다.
그러므로 DD-MON-YY type으로 값을 얻기 위해서는 T를 1 또는 5로하고
L을 9또는 10으로 맞추어 주어야 한다.
NUMBER type역시 마찮가지이다. Internal format이 return될것이므로
그 자체로는 알아보기가 쉽지 않다. 그러므로 T값을 1,3,4,5등으로 맞추어
주고 sqlprc()를 이용한다.
이때 platform에 알맞은 값은 sqlprc.h를 참조한다.
Sqlprc ( long length, int precision, int *scale );
length          L에 저장되어 있는 NUMBER값의 길이.
Precision     NUMBER값의 precision. 0값은 표현할수 없는 값이 있을때
          생기는데 이경우에는38을 넣어 준다.
Scale          NUMBER값의 scale. 반올림되는 자리수이다. scale이 2이면
          소숫점 두자리 아래에서 반올림하고 -3이면 천자리에서
          반올림한다.
만약 precision ==> 3, scale ==> -2 이면 숫자의 최대크기는 99900이다.
/* Declare variables for the function call */
sqlda     select_des; / pointer to select desctiptor */
int      prec;     /* precision */
int      scal;     /* scale */
extern void sqlprc ( ); /*Declare library function */
/* Extract precision and scale */
sqlprc ( *&(select_des->L[I]), &prec, &scal );
/* Allow for maximum size of NUMBER */
if (prec == 0)
     prec = 38 ;
/* Allow form possible decimal point and sign */
select_des->L[I] = prec + 2;
if (scal < 0 )
select_des ->L[I] += -scal;

Similar Messages

  • How many DNS record need to create in Internal & external DNS server for exchange?

    Hi friends,
    I recently installed Exchange Server 2010 in my organization for testing purpose and I've register a pubic ip too for exchange server on godaddy.com. How many
    internal & External DNS records reqired to configure on external & Internal dns server so my all feature like Auto-discover, Activ -sync,& webmail start working perfectly.
    It's my first time configuring exchange for a organization.
    Thanks & Regards,
    Pradeep Chaugule

    Hi,
    Just as what ManU Philip said, you need to create
    Autodiscovery.domaincom and mail.domain.com for external dns server.
    Generally, you configure your Exchange Servers as DNS clients of your internal DNS server.
    Refer from:
    http://technet.microsoft.com/en-us/library/aa996996(v=exchg.65).aspx
    Best Regards.

  • Routing issue with dual Ethernet NICs - Internal/External Configuration under Windows 8.1 - what am I doing wrong ?

    I have a PC hosting Windows 8.1, attached to two Networks. One leads to the internet - and uses the private IP address (172.*)  the other is purely internal (also using the private address 198.*) but,  has no internet connectivity.  I'm finding
    that if I don't disable my internal NIC, I can't access any internet sites. Is this a bug, or have I not done something correctly.
    I have also, a Windows 7 PC, attached to the same Networks, and it exhibits no issues when connecting to either the internet or to internal locations.
    (Both are Enterprise builds, though only across a Windows for Workgroups network).
    Can anyone tell me what I need to be doing with Windows 8.1 please, to make both internal & external network connectivity work as is the case with Windows 7 ?
    I'm only running IPv4, and both Wired Networks have at their respective ends, Routers that support DHCP & NAT. Though the internal Router's external port is not connected to anything.
    Thanks in advance...

    Hi,
    Can you tell me what you have tried so far and how did you set?
    Firstly please update all network adapter driver.
    After that, do the following:
    1. Open the Command Prompt (Admin).
    2. Run "Ipconfig /all" to check your nics IP information.
    3. Use route command tell the computer which interface you want the packets to leave from.
    Assuming Network A is...
    10.10.11.0 /24
    Router is 10.10.10.1
    and Network B is...
    10.10.12.0 /24
    Router is 10.10.10.2
    then use this command:
    route add 10.10.11.0 mask 255.255.255.0 10.10.10.1 -p
    route add 10.10.12.0 mask 255.255.255.0 10.10.10.2 -p
    Hope this helps.
    Karen Hu
    TechNet Community Support

  • Internal/External displays blank when external connected while sleeping

    When I connect my external display to my MBP (late 2011) while it's sleeping, the MBP awakens but both the internal & external display are blank.
    The MBP is running ML and is connected to external display via DVI. No response to external Logitech keyboard or internal keyboard. Currently my only recourse is to ssh in from a co-located Vista machine & 'sudo reboot'.
    If MBP has recently been used  (say < 5 min or so), everything's fine -- external display fires up & external KBD/Mouse work.
    I'd be interested in any way to prevent this problem if I forget to open MBP for a moment before connecting Power/DVI/USB. Alternately, a command
    I could issue via SSH to reinitialize display would be great.
    Thanks. Kent

    Pleased ignore this thread - managed to double post somehow ....? Sorry
    Chris

  • Internal/External Action in Integration Scenario

    Hi,
          What is the simple logic of defining an Action Internal/External in an integration scenario.
    For Instance, A Web application "A" is accessing "PS-EPS"(SAP) system to check the existense of Network.
    What will be the type of Usage at both ends. Why?
    Thanks,
    Debashish Sarkar

    Hi Ajith,
    Yes, you were correct go ahead.
    Refer the below link:
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/68/88a440df800160e10000000a1550b0/content.htm

  • Source system set up for internal / external access

    Hi all.
    We have an EP 6.0 (NW04 SP16) system delivering BW data from a back-end BW 3.1/3.2 system.  We are using BW Report iViews to deliver all reports to external and internal users.  I am having a very specific problem when setting up the source system for the BW system.
    The BW Report iView object uses the WAS hostname parameter(found under: System Administration -> System Configuration -> Systems -> BWSourceSystem -> Open ->Object -> "Web Application Server (WAS)") when retrieving the back-end BW report. 
    When this parameter is set using an internal host id (internal_host.company.com) internal users can access the report in question, but external users can't.  Alternatively, when this parameter is set using an external host id (ie. the host of our DMZ proxy server) external users can access the report, but internal users can't.
    I need to find a way to use one hostname for this parameter that will work for both internal and external users.  I have worked with the HTTPURLLOC table and this solution works great for URL iViews, but not for BW Report iViews.  Does anyone have any suggestions?  Thanks!

    Hi Shashi.
    We did find a solution using web dispatcher.  We actually installed two instances of web dispatcher... one in our DMZ for external access and another one our corporate LAN.  The web dispatchers are configured identically and the EP instance knows only one hostname:
    name.company.com
    The port passed to the URL https://name.company.com:port is what tells web dispatcher what to do with the request (ie. pass the request to EP, BW, ECC, R/3, etc.).
    Be aware that EP allows for only one hostname for Source System Setup - my name.company.com in my example above -(this is the EP Web Application Server hostname (WAS) parameter found under System Admin - System Config - Systems) - so you may need to do something like we did:
    register name.company.com on the internet as a public address and use that DNS mapping for external users (using your DMZ version of webdispatcher).  Subsequently, use internal DNS or host name mapping to register an internal private addresss for name.company.com (using your LAN version of web dispatcher).  this will allow both internal / external users access to the portal and other SAP back-end systems.
    It may sound a bit kludgy, but believe me - we tried everything to make this work.  I took this all of the way to SAP and this was the recommendation SAP made for allowing both internal and external users access to portal and BW data.
    Hope this helps!

  • Changing Internal & External URLs?

    We run split DNS so right now for all services the internal and external Exchange 2010 URLs are simply set to mail.domain1.com.
    If I change them to mail.domain2.net, assuming there is a valid cert on the Exchange box for mail.domain2.net, and assuming that split DNS points mail.domain2.net to the internal/external IP of the Exchange box, new clients should pick up the new domain.
    What happens to existing clients i.e. Outlook and ActiveSync?
    Will they continue to use mail.domain1.com until the account is removed and added again, or do they do a periodic refresh/update/poll of which setting to use?
    In particular would the URL used by Outlook Anywhere be updated on the client automatically?
    This topic first appeared in the Spiceworks Community

    Hi,
    For the migration from the Exchange 2007 to Exchange 2013, we need change the external URLs with the new Exchange 2007 host name legacy.domain.com and migrate all mailboxes including public folders.
    For more information about the migration, you can refer to the following articles:
    http://blogs.technet.com/b/meamcs/archive/2013/07/25/part-3-step-by-step-exchange-2007-to-2013-migration.aspx
    http://blogs.technet.com/b/meamcs/archive/2013/07/25/part-4-step-by-step-exchange-2007-to-2013-migration.aspx
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • PS ; Network Activities (Internal & external) monitoring or evaluation

    Hi
    Can any one guide me how to  pull out a std report for viewing the dates maintained in Activities (Internal & external) in Network, planned dates vs actual dates of confirmation of activities.
    Pl help
    Srihari

    Hi Shrihari,
    U can use CN41N to get dates maintained in Activities (Internal & external) in Network, planned dates vs actual dates of confirmation of activities.
    Thanks & Regards,
    Jatinder Bansal

  • Internal/External option in the Transformation

    Hello experts,
    Please tell me about Internal/External option in the Transformation under Proposal Tab. When we go for Internal And when we go for external.

    i think external is used when your source system is flat file. Normally the data from R/3 use internal format.
    waiting expert to answer more detail.

  • SCOT configuration for internal & external email system in EP.

    Hi,
    I want to add SCOT configuration for internal & external email system in  SAP EP 7.0  ?
    What all steps I need to do ? any good documents on this ?

    Hi Haider,
    I have read the link you have given me to configure SCOT. I have 3  doubt plzz clarify.
    Doubt No. 1:
    In that link its mentioned that I have to add 2  profile parameter in the transaction RZ10 namely icm/server_port_<>*  and is/SMTP/virt_host_<>*
    My question is Can I put any value which i like in place of * like can I add either icm/server_port_2  OR  icm/server_port_3 OR icm/server_port_4  in icm parameter AND ALSO
    Can I put any value which i like in place of * in is/SMTP/virt parameter like can I add either is/SMTP/virt_host_0  OR  is/SMTP/virt_host_1  OR is/SMTP/virt_host_2 .
    Doubt No. 2:
    What port value I have to put in the profile parameter    icm/server_port_2  in RZ10.  Can I put any port value ? and automatically that port will work? say suppose I addded this profile parameter in RZ10
    icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180          so automatically 25000 port will work ? or will it give error?
    Doubt No. 3:
    When I go to SMICM transaction and go to services , I get the following:
    No.  Log         Service name/port     Host name           Keep Alive    Proc TimeOut   Active
    1     HTTP               8000                  epv.sopm.com           30                     60               Yes
    2     SMTP               0                       epv.sopm.com            30                    60                Yes
    3     HTTPS             8001                 epv.sopm.com            30                    180               Yes
    This means that HTTP port is 8000,   HTTPS port is 8001. My question is why in SMTP its showing 0, why no port is shown?
    I have not added any profile parameter like  icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180     for SMTP in RZ10 as of now.
    Is this the reason for this ?

  • What are the mac-compatible internal/external dvd burner for 12"Pbook

    what are the mac-compatible internal/external dvd burner for 12"Pbook

    ibodnano:
    You will find internal optical drivers from OWC here. You will find external DVD burners from OWC here.
    For the external drives, almost any Firewire burner will be supported by your PowerBook. Here are a few. You can further refine the filters.
    Good luck.
    cornelius

  • 3.1.1 DNS with internal/external zone

    Hello there,
    OS X 10.9.2 and Server 3.1.1
    I have a server behind nat, I want to configure dns with 2 zone (internal/external), one for private lan and one for internet.
    Internet IP : 12.12.12.12 -> NAT -> Server IP : 10.10.10.10
    Domain : mydomain.com
    I want in private network server.mydomain.com have ip 10.10.10.10 and from internet 12.12.12.12, how I can configure that zones ?!
    For example if I ping from lan server.mydomain.com to have reply from 10.10.10.10 and if i ping from internet to have reply from 12.12.12.12
    I try to configure with Server Admin but from internet i have response with internal ip
    Please help me to configure that split horizon dns.
    Thank you !
    Adrian

    adriandascalu wrote:
    Only lan DNS (192.168.0.10) where I have private zone of dns, and 8.8.8.8 .. All works fine now.
    It'll work for a while, and depending on which translation is requested and with which DNS server is queried.  Should there be DNS translation failures for local addresses, then the client is probably aimed at Google DNS and will then probably need to eliminate that DNS server as an option for queries.  Not all DNS clients will try multiple servers, and Google DNS cannot return local translations, after all.
    Unrelated: if you're planning on using a VPN, 192.168.0.0/24 and 192.168.1.0/24 aren't the best choices for a NAT'd network — those two are very commonly used in home networks and coffee shops and such.  VPNs are based on IP routing and IP routing is based on the subnets on the local and remote ends of the VPN, and IP routing doesn't generally work well with the same subnet present on both ends of the connection.

  • OWA 2013 internal/external Untangle

    I know the general topic has been touched on a few times pertaining to a internal/external setup, but I wanted to bring the topic up again to see if any new ideas are out there.
    With the TMG wind-down I built up a Untangle server and so far and fairly happy with it.  As most people probably have said, great in some areas but certainly lacking in some of the features TMG offered.
    But... the one major feature I miss with TMG is the ability for it to handle FBA for internal sites like OWA.  Since the UT appliance requires the barebones forwarding of traffic directly to the Exchange/OWA internal IP, I have to have FBA enable for
    everything.  That of course breaks the neat ability to have internal clients auto login with integrated auth.
    I did come across a few posts of people trying to create separate OWA sites so internal users could use integrated windows auth, and the other site would continue to use FBA for external users. I tried following the general outline of what I was seeing and
    created a separate OWA and ECP site, but every time I tried changing authentication settings I completely hosed the entire log ability.  That was multiple headaches with every change attempt so I didn't try to push the idea past a few attempts.
    So... I suppose this is a multi part question.  If not using a TMG setup, can anybody offer suggestions on what is realistically possible in terms of having a internal/external option. 
    Thanks

    I share your pain.  I've set up separate OWA websites on Exchange 2007 and 2010 using port 444 or 4433 with basic authentication which TMG would connect to.  When trying to do that in Exchange 2013, I experienced what you say.  I've since
    read that it can be done, but I haven't yet tested it myself so I can't promise that it would work.  In your case, assuming your device will send to a different port, you'd want to make that new OWA web site set for forms authentication.
    This thread describes the process others report that they've used.
    http://social.technet.microsoft.com/Forums/exchange/en-US/9fcd360f-6658-4940-add7-2f13265cf86b/multiple-owa-sites-on-a-single-server-2012-with-exchange-2013-mailbox-cas?forum=exchangesvrclients
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Unable to send or recive email Internal & Externa ... Exchange 2013

    Hi all
    duo to some previse problem I hade to recover the server hard drive with a backup image.
    I recover the server with the windows installation cd &  backup image that I stored  on external HD
    the recover was done successfully & fix this issue and return the server to the time that the image was taken
    now after recovering the server unable to sent or receive e-mail from
    Internal & External
    for all users
    outlook is connected Internal & External for all users
    the web app is working Internal & External for all users
    all Exchange services are started and running
    the Exchange Server is on a one machine
    the domain is on another machineall server
    at the same network
    all servers is behind TMG server
          Thank you all

    Amy Wang
    thank you for your organized steps
    sure I disconnected all server
    that are not using with Exchange from the beginning.
    and I also reconfigure the DNS  Server\<Exchange server name>
    and I recheck the reverse lookup zone.
    as I said before the exchange was working fine until a power loss make me unable to open the ECP
    witch lead me to recover the server from a backup image
    PS. the recover was made at 8/10/2014 & the image that I use to recover was taken on 8/2/2014
    the domain server is another machine & did not recovered to that date 8/2/2014 couse it has no problem
    could this effect the relation between the domain & the exchange
    knowing that the recovering is made by windows installation cd 
    first format the HD than recopy the image that was taken on 8/2/2014
    thank you

  • Lync internal / external web services FQDN

    I have a Standard edition 2013 FE server
    Should my internal/external web services url in DNS point to my FE internal IP or my Reverse proxy public IP?
    For mobility it says it should point to the external IP but for address book updates etc surely I want my internal windows clients using the FE pool directly?
    I am unable to differ them on 2013 standard edition...
    ***Don't forget to mark helpful or answer***

    The external web services works in conjunction with a reverse proxy in the perimeter network. It provides clients external access to by using these web services. The FQDNs configured here are sent to clients when they log on, and are used to make an HTTPS
    connection back to the reverse proxy when connecting remotely. The reverse-proxy server forwards the external web service FQDN to an internal hardware load balancer, or directly to the pool. The reverse proxy must be able to resolve the external web services
    FQDN to the IP address of the internal Web server. The external web services FDQN must be resolvable in the public Internet.
    If your internal server is a Standard Edition server, the internal FQDN is the Standard Edition server FQDN. If your internal server is a Front End pool, the FQDN is a hardware load balancer virtual IP (VIP) that load balances the internal web farm servers.
    A hardware load balancer is required in a Front End pool with more than one Enterprise Edition server. A load balancer is not required for a Standard Edition server or a single Enterprise Edition Front End Server.
    For DNS configuration, you can refer below link
    http://expertslab.wordpress.com/2014/04/09/dns-requirements-for-mobility/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical

Maybe you are looking for

  • Write records to a Flat file & Ftp to a remote server

    I know this would be a basic question for most of the ppl in this forum, but I am stuck in here. There is a "Orders" table, and when new orders are made , I need to build a file with relevant information(extracted from tables) and FTP to a remote ser

  • Can i use a 3g/cellular wifi ipad mini in another country if i bought it in england?

    I would like to know if i was to buy a ipad mini which has 3g/ cellular wifi will it work in another country such as the US or Spain?

  • Solaris 8 on Dell Power Edge 4400

    What does it take to get Solaris 8 installed on a Dell Power Edge 4400? Thus far, I have followed instructions found elsewhere to grab the Adaptec cadp160 driver, which I successfully install in the Device Configuration Assistant. Every time I select

  • Problems importing TV Shows I got from iTunes

    I purchased the first two seasons of a TV show on iTunes about 3 months ago. There was a small house fire in my home that fatally damaged my laptop. Fortunately, we recovered the hard drive and I was able to save my files. I got a new computer but iT

  • Best screen capture resolution for FCP

    I'm making some tutorials of various computer software. I'm going to edit them with FCP. I'm using the MAC built in SHIFT-COMMAND - 3 or 4 in order to snap stills off my screen, and then import into Final Cut Pro to edit the tutorials with. The still