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

Format issues using XMITIP MSGDD


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ssdjp1

New User


Joined: 22 Aug 2017
Posts: 6
Location: USA

PostPosted: Mon Oct 23, 2017 8:47 pm
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: 2455
Location: Hampshire, UK

PostPosted: Mon Oct 23, 2017 9:30 pm
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: 6
Location: USA

PostPosted: Mon Oct 23, 2017 9:53 pm
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: 754
Location: Pennsylvania

PostPosted: Mon Oct 23, 2017 10:39 pm
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: 1348
Location: Israel

PostPosted: Tue Oct 24, 2017 2:34 pm
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: 6
Location: USA

PostPosted: Tue Oct 24, 2017 10:51 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Printing a dataset in DUMP format wit... ABENDS & Debugging 2
No new posts Converting a file from PD to display ... SYNCSORT 4
No new posts Date format conversion DFSORT/ICETOOL 4
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts Insert System Runtime in HEADER In SY... SYNCSORT 9
Search our Forums:

Back to Top