IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

display variable value in ADSO[logs]


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Sun Jan 11, 2009 9:23 pm
Reply with quote

i have a group variable which is of length 664 and i want to display the value of variable starting from character 638 to 664.

When i am using a command in ADSO:
WRITE TO LOG MESSAGE TEXT = variable name.
The displayed value of variable is getting truncated.

Is it possible to display characters which are present in the end.

Please do let me know if any one of you know the solution or need more information on this issue.
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Thu Jan 15, 2009 1:27 pm
Reply with quote

Deepak,

Your Requirement is not clear... What command you tried in ADSO and what error you got.
Quote:
i have a group variable which is of length 664 and i want to display the value of variable starting from character 638 to 664.


Just move the Character you want, to the display variable as you do in general and pass the control to the screen. That will work.
Quote:
WRITE TO LOG MESSAGE TEXT = variable name.


What is this? I really dint get, What you are trying to say icon_surprised.gif
Back to top
View user's profile Send private message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Thu Jan 15, 2009 2:35 pm
Reply with quote

have you ever worked on ADSO and dailogs. Sorry if i am being bit rude.
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Thu Jan 15, 2009 4:23 pm
Reply with quote

If im not working in ADSO, I wouldn't opened this part of forum.

In forum you should give your specification clearly. You should not expect, everything should be assumed by forum members. you should give your requirement clearly.
If your need solution, give your problem specification clearly. Answer the questions which we ask.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 15, 2009 9:29 pm
Reply with quote

Hello,

Quote:
Sorry if i am being bit rude.
Possibly a bit more frustrated than rude. . .

When posting a problem/requirement the issue is completely clear to the poster, but may not be to those who read the topic and would like to help.

In order for people here to help the requestor, the requestor needs to answer questions/provide info requested even if they do not agree or understand why they are asked.

Unfortunately, the majority of the burden getting help is in presenting the problem/request info. It may take a few iterations to clarify the requirement, but then usually, useful replies happen icon_smile.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Jan 15, 2009 10:18 pm
Reply with quote

Oh, Dick, you are so diplomatic. icon_smile.gif
Back to top
View user's profile Send private message
tgortner
Warnings : 1

New User


Joined: 02 Jun 2006
Posts: 4

PostPosted: Sat Feb 14, 2009 2:08 am
Reply with quote

In a work record, define an element of 80 bytes.
Such as :

01 WK-REC.
05 WK-DISPLAY-FIELD PIC X(80).

At display time:

MOVE SUBS(yourvariablename,start,len) TO WK-DISPLAY-FIELD.
DISPLAY MSG TEXT WK-DISPLAY-FIELD.
Back to top
View user's profile Send private message
tommypetersen

New User


Joined: 22 Nov 2006
Posts: 2
Location: USA

PostPosted: Sat Feb 14, 2009 2:20 am
Reply with quote

Yes and no.
Write to log supports up to 240 characters, so you cannot directly write the message. Unfortunately the "write to log" does not accept a build-in function, so you will need to move the part of the field you want to display into another variable first.

move substring(variable,638,7) to new-variable.
write to log message text is new-variable
Back to top
View user's profile Send private message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Sun Feb 15, 2009 12:32 pm
Reply with quote

Thanks tommy for the help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top