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
 
Format issues using XMITIP MSGDD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ssdjp1

New User


Joined: 22 Aug 2017
Posts: 3
Location: USA

PostPosted: Mon Oct 23, 2017 8:47 pm    Post subject: Format issues using XMITIP MSGDD
Reply with quote

I have one message that is not being formatted like I would really like to see.

In the XMITIP invocation I have
%XMITIP........ MSGDD MESG

//MESG DD *
Line1
Line2
Line3
Line4

When I get this message, it looks exactly like that.
Line1
Line2
Line3
Line4


The scenario I have where it formats incorrectly is being generated by a REXX program that is generating all the XMITIP pieces. The MESG dd is a temp file which is passed to the XMITIP step:

//MESG DD DISP=(NEW,PASS),LRECL=80,BLKSIZE=0,
// UNIT=3390,DSORG=PS,SPACE=(TRK,(1,1)),DSN=&&MESG

The REXX code :
mesg. = ""
mesg.1 = "STCVERIFY("jobid") Recap "date() time()
mesg.2 = "Recap of Started TASKS not active:"
mesg.3 = error_jobs
mesg.0 = 3
"execio * diskw MESG (stem mesg. finis"

The resulting email is not formatted correctly:
STCVERIFY(STC06753) Recap 23 Oct 2017 10:51:25 Recap of Started TASKS not active:
DJPJ12 TSO

I want it to look like:
STCVERIFY(STC06753) Recap 23 Oct 2017 10:51:25
Recap of Started TASKS not active:
DJPJ12 TSO

Suggestions?
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2033
Location: UK

PostPosted: Mon Oct 23, 2017 9:30 pm    Post subject:
Reply with quote

Please use the code tags for code and data.

Where is this being viewed - z/os or l/u/w?
If the latter then have you tried inserting the appropriate end of line char[s] after mesg.1 (although thiseems to be ok between mesg.2 and 3,

Style-wise you should not write * lines but mesg.0 lines. One day you might get caught short and not all lines get written.
Back to top
View user's profile Send private message
ssdjp1

New User


Joined: 22 Aug 2017
Posts: 3
Location: USA

PostPosted: Mon Oct 23, 2017 9:53 pm    Post subject:
Reply with quote

Thanks Nic. "Where is this being viewed"? Do you mean in what email client (Outlook). we are running z/OS 1.13
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 715
Location: Pennsylvania

PostPosted: Mon Oct 23, 2017 10:39 pm    Post subject:
Reply with quote

Instead of this:

Code:
//MESG DD *
Line1
Line2
Line3
Line4


Try this:
Code:
//MESG DD DISP=SHR,DSN=&&MESG


This should use the dataset you created earlier.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1284
Location: Israel

PostPosted: Tue Oct 24, 2017 2:34 pm    Post subject:
Reply with quote

Which other options do you have in your XMITIP command ?
If there is any HTML, then you should do:
Code:
mesg. = ""
mesg.1 = "STCVERIFY("jobid") Recap "date() time()"<BR>"
mesg.2 = "Recap of Started TASKS not active:<BR>"
mesg.3 = error_jobs"<BR>"
Back to top
View user's profile Send private message
ssdjp1

New User


Joined: 22 Aug 2017
Posts: 3
Location: USA

PostPosted: Tue Oct 24, 2017 10:51 pm    Post subject:
Reply with quote

Thanks for the help. I branched off trying Nic's idea of an EBCDIC CRLF to see if that would make it separate the message. I added '15'x to the end of the mesg.1 and that cured the issue. Weird - never seen this before. In over 20years of using XMITIP, this was a first. Thanks for the help and suggestions.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SMTP Crashing Issues Yolanda Harvey All Other Mainframe Topics 4 Fri Jul 20, 2018 12:53 am
No new posts IBM website search issues starting 06... harisukumaran General Talk & Fun Stuff 2 Thu Jun 14, 2018 7:48 pm
No new posts Unloading DB2 table in CSV format alo... grvtomar COBOL Programming 7 Sun Jan 28, 2018 2:05 am
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Query on XMITIP abdulrafi All Other Mainframe Topics 1 Wed Oct 25, 2017 6:54 pm

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