Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
display variable value in ADSO[logs]

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
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    Post subject: display variable value in ADSO[logs]
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Jan 15, 2009 9:29 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: display variable value in ADSO[logs]
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    Post subject:
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    Post subject: thanks
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    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us