View previous topic :: View next topic
|
Author |
Message |
divated
New User
Joined: 30 Sep 2016 Posts: 5 Location: south africa
|
|
|
|
Hello,
My DFHWS2LS jcl is returning output copybook with numeric field layout as 9(15)v9(3) comp-3. As DEFAULT-FRACTION-DIGITS is 3.
But I am expecting 2 fields(validExchangeRate and estimatedExchangeRate ) in the output copybook field as 9(12)v9(6) comp-3.
Any ideas how to do it.
_________________
Thanks,
Dilip Divate |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
No idea what you are talking about. I somehow do not think that is related to JCL or VSAM. DFH.... maybe it is CICS; copybook ... maybe it is COBOL.
Quote: |
Any idea how to do it. |
this should probably have a question mark (?) at the end of it otherwise you have not asked a question. And the answer is "to code it correctly". As you have not explained your problem at all well tht is probably the only answer. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
Back to top |
|
|
divated
New User
Joined: 30 Sep 2016 Posts: 5 Location: south africa
|
|
|
|
Posting with detailed clarification.
source system (wsdl) layout
salary decimal 14
rate decimal 14
fees decimal 14
data returned output 1 in application
salary 1234567.123
rate 1234.123456
fees 1234567.123
data returned output 2 in application
salary 1234567.123
rate 1234.123
fees 1234567.123
Cobol layout generated from DFHWS2LS JCL.
ws-salary pic 9(15)v999.
ws-rate pic 9(15)v999.
ws-fees pic 9(15)v999.
Result: My invoke webservice is failing in test case 1 as ws-rate field is expected to be defined as pic 9(12)v9(6).
Note: Cobol Layout is generated from DFHWS2LS JCL.I tried with DEFAULT-FRACTION-DIGITS=6 but then the ws-salary and ws-fees is also generated with pic 9(12)v9(6) (I don't want to change the ws-salary and ws-fees).
Any help to change the para parameters so that my jcl will generate the copybook with correct ws-rate field.
Error: DFHPI1009 XML to data transformation failed. A conversion error (FRACTION_TOO_LONG) occurred
when converting field ws-rate for WEBSERVICE feeLookup.
JCL:
Code: |
/*JOBPARM SYSAFF=*
// JCLLIB ORDER=TRCICSX.R520.R1.SDFHINST
//WS2LS EXEC DFHWS2LS,USSDIR='cicsts52',
// JAVADIR='java/J7.1_64',
// PATHPREF=''
//INPUT.SYSUT1 DD *
LOGFILE=/u/cyd4/fxmgoxml.log
MAPPING-LEVEL=4.0
MINIMUM-RUNTIME-LEVEL=4.0
PDSLIB=//TRISDXX.SHARED.LIBRARY
REQMEM=FXMGI
RESPMEM=FXMGO
LANG=COBOL
OPERATIONS=feeLookup
DATA-TRUNCATION=ENABLED
WSBIND=/cics/cicsts52/ws_bind/dev1/forxsreq/fxmgoxml.wsbind
WSDL=/cics/cicsts52/ws_bind/dev1/forxsreq/*
agent.wsdl
DEFAULT-FRACTION-DIGITS=3
*/ |
Coded |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Please use the code tags when posting stuff from your screen.
Still do not know what you are talking about but it would appear not to JCL or VSAM. It may be COBOL, CICS or USS. Moving to CICS to start with. |
|
Back to top |
|
|
|