MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to move Hex value in ADSO Dialog Process

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
mm_ak81
Beginner


Joined: 12 Sep 2008
Posts: 6
Topics: 4
Location: Chennai

PostPosted: Mon Nov 24, 2008 9:22 am    Post subject: How to move Hex value in ADSO Dialog Process Reply with quote

Hi,

We are implementing socket programming in ADSO. The system we are trying to connect is developed in Java. In our MF we have CP1148 as code page.

Whatever text I need to transfer to other side from my socket, it expects some header information. This header information contains values like SOH, STX, ETX etc.

I defined one variable
02 START-OF-HEADER PIC X(1).

when I am trying to issue the following statement in my ADSO Process,

MOVE X'01' TO START-OF-HEADER.

it is throwing following message.

12000 MOVE X'01' TO HEADER-IN-START-OF-HEADER.
$ $
<E> DC164076 ILLEGAL DATANAME PARSED. STMT FLUSHED.
<E> DC161001 SOURCE DATANAME, EXPR, OR NUMBER NOT FOUND. STMT FLUSHED.


Can you people help me in this regard, how to handle these control characters in ADSO Dialog process?

Thanks.
Anil Manepalli
_________________
Regards,
Anil Manepalli
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Nov 24, 2008 10:43 am    Post subject: Reply with quote

why is the message
Quote:
12000 MOVE X'01' TO HEADER-IN-START-OF-HEADER.


when you say your code is:
Quote:
MOVE X'01' TO START-OF-HEADER


reference names don't match. the message is not being thrown for the line that you think it is.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
mm_ak81
Beginner


Joined: 12 Sep 2008
Posts: 6
Topics: 4
Location: Chennai

PostPosted: Mon Nov 24, 2008 11:14 am    Post subject: Reply with quote

This is the message I am getting

[code:1:b776344e83] 11600 INITIALIZE(HEADER-IN).
11800 MOVE 1 TO HEADER-IN-MSGCLASS.
<E> (X)
11900 MOVE X'01' TO HEADER-IN-START-OF-HEADER.

_________________
Regards,
Anil Manepalli
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Nov 24, 2008 3:10 pm    Post subject: Reply with quote

If compiler option APOST is not specified then the delimiter is " not ' i.e. X"01".
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Nov 25, 2008 3:21 am    Post subject: Reply with quote

The
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
mm_ak81
Beginner


Joined: 12 Sep 2008
Posts: 6
Topics: 4
Location: Chennai

PostPosted: Tue Nov 25, 2008 11:35 am    Post subject: Reply with quote

Guys,

When I pasted for first time, its a format issue. Thats the reason I pasted the error what I was getting once again.

Nic, the problem is I am compiling this piece of code thru ADSC (ADS Compiler) not thru a JCL. I tried with X"01" instead of X'01', even that also it throwed me the following error.

Code:

12300    MOVE  1                  TO HEADER-IN-MSGCLASS.       
         <E>    (X"01")                                       
12400    MOVE X"01"               TO HEADER-IN-START-OF-HEADER.
                                   $                           $             
 <E>   DC164076 ILLEGAL DATANAME PARSED.  STMT FLUSHED.                     
 <E>   DC161001 SOURCE DATANAME, EXPR, OR NUMBER NOT FOUND. STMT FLUSHED.   


I declared HEADER-IN-START-OF-HEADER as PIC X(1).
_________________
Regards,
Anil Manepalli
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Nov 25, 2008 4:12 pm    Post subject: Reply with quote

My mistake - I was thinking COBOL, not ADSO. Not quite the same thing. Fortunately I have an ADSO manual at home so I have looked it up and it does not appear to have a Hexadecimal datatype - Group, EBCDIC, Zoned Decimal, Packed Decimal, Binary, Multibit Binary and Floating point but no Hexadecimal. I suggest you use binary. The example my manual gives is:
Code:

AMT-1 PIC S9(8) USAGE COMP.
MOVE 4505 to AMT-1.

This is ADS 12.01
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
mm_ak81
Beginner


Joined: 12 Sep 2008
Posts: 6
Topics: 4
Location: Chennai

PostPosted: Fri Nov 28, 2008 10:22 am    Post subject: Reply with quote

I think even Binary also I tried but it didnt fitted my requirement.

I had written a small DC Program which returns me the header and trailer which are needed for message. Its working fine.

Thanks Guys for your responses.
_________________
Regards,
Anil Manepalli
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group