View previous topic :: View next topic
|
Author |
Message |
deepak.kec
New User
Joined: 26 Feb 2007 Posts: 71 Location: bangalore
|
|
|
|
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 |
|
|
nelson.pandian
Active User
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
|
|
|
|
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 |
|
Back to top |
|
|
deepak.kec
New User
Joined: 26 Feb 2007 Posts: 71 Location: bangalore
|
|
|
|
have you ever worked on ADSO and dailogs. Sorry if i am being bit rude. |
|
Back to top |
|
|
nelson.pandian
Active User
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Oh, Dick, you are so diplomatic. |
|
Back to top |
|
|
tgortner Warnings : 1 New User
Joined: 02 Jun 2006 Posts: 4
|
|
|
|
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 |
|
|
tommypetersen
New User
Joined: 22 Nov 2006 Posts: 2 Location: USA
|
|
|
|
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 |
|
|
deepak.kec
New User
Joined: 26 Feb 2007 Posts: 71 Location: bangalore
|
|
|
|
Thanks tommy for the help. |
|
Back to top |
|
|
|