[This message was posted by Toby Corballis of Rapid Addition
<[email protected]> to the "4.0 Session" discussion forum at
http://fixprotocol.org/discuss/12. You can reply to it on-line at
http://fixprotocol.org/discuss/read/8c6eab8a - PLEASE DO NOT REPLY BY MAIL.]
Hi Mahesh - just a couple of additional thoughts. If you want to yu can define
an 88 level, like this:
01 WS-FIX-CHARACTER PIC X.
88 SOH-CHARACTER VALUE X'01'.
This has the advantage that it can be
a) interrogated easily as part of a condition statement:
IF SOH-CHARACTER
do some stuff (e.g. PERFORM, MOVE, SET... etc)
END-IF.
or, similarly, as part of an EVALUATE statement
b) Can be user to reset the value if case something overwrites it:
SET SOH-CHARACTER = TRUE.
Point b) is useful is you are working with volatile data storage for example.
Also, in case youwere wondering, SOH has the same heaxdecimal value in EBCDIC
as it does in ASCII, i.e. X'01' is the correct value for both character sets.
<
> Appreciate your Help Toby and Greg!! :)
>
> > Greg's method shoud work too! :)
> >
> > > Doing a google search on "set a hex value in cobol" led me to
> > > something like this:
> > >
> > > 05 ASCII-1 PIC X VALUE X'01'.
> > >
> > > Give it a try.
> > >
> > > Good luck, Greg.
> > >
> > > > Hi Mahesh,
> > > >
> > > > Hope you are doing great. It has been wonderfull reading all your
> > > > posts.
> > > >
> > > > Can you please let me know if you hava any idea, how i can define
> > > > Delimiter(SOH) as a COBOL field?
> > > >
> > > > Appreciate your help in Advance.
> > > >
> > > > Thanks.
> > > >
> > > >
> > > > > As pointed out by Paul in
> > > > >
> > > > > http://fixprotocol.org/discuss/read/4932c2cc
> > > > >
> > > > > Begin String Tag 8 should be FIX.4.2
> > > > >
> > > > > > X4.2^35=S^49=Broker^56=Institution^34=251^52=2000072814:06:22-
> > > > > > ^...(Remaining message here)
> > > > > >
> > > > > > I am using ^ to denote SOH delimiter in the above String. In
> > > > > > Java SOH can be defined as
> > > > > >
> > > > > > public static final char SOH_DELIMITER = '\u0001';
> > > > > >
> > > > > > Each Tag=Value par should be followed by SOH character. Looks
> > > > > > like the file from which you are trying to extract FIX
> > > > > > messages is not storing SOH.
> > > > > >
> > > > > > > I'm trying to extract FIX message from FILE...Initially i'm
> > > > > > > trying to create Message with predefined String like
> > > > > > >
> > > > > > > "8=FIX4.2<SOH>9=222<SOH>35=S<SOH>49=Broker<SOH>56=Instituti-
> > > > > > > OH>OH>52=2000072814:06:22<SOH>117=XXX<SOH>131=YYY<SOH>55=AA-
> > > > > > > OH><SOH>202=25.00<SOH>201=1<SOH>132=5.00<SOH>133=5.25<SOH>1-
> > > > > > > 34=10<SOH>135=10<SOH>10=KED<SOH>";
> > > > > > >
> > > > > > > Message m=new Message(line);
> > > > > > >
> > > > > > > But its not Working.(Exeption-SOH not found at end of field:
> > > > > > > 8) please let me know where i'm going wrong.
[You can unsubscribe from this discussion group by sending a message to
mailto:[email protected]]
--
You received this message because you are subscribed to the Google Groups
"Financial Information eXchange" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fix-protocol?hl=en.