New line in message formatting in CL program

285 pts.
Tags:
AS/400
CL Program
I want to insert a new line in message formatting in CL program. Like Name new line and details new line and rem details. How can insert a new line in message formatting?

Software/Hardware used:
as400

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ToddN2000
    What type of message are you referring to? A DSPF error, an operator? Depending on where the message is displayed you may not have room for multiple lines. What does your code look like now ?
    15,605 pointsBadges:
    report
  • sivakesava

    SNDDST TYPE(*LMSG) TOINTNET((ex)) LONGMSG(TEMPMSG)

    In the above command, i wanted to format the long message like below.

    Name : EX

    Time : 2 Hr

    System: EX

     

    285 pointsBadges:
    report
  • sivakesava
    In the above case, can i insert the new line in long message formatting
    285 pointsBadges:
    report
  • ToddN2000
    Found this example in my notes. It may help.

     ** NAMED CONSTANTS FOR CARRIAGE RETURN                           
    D CR              C                   CONST(X'0D')


    EVAL        MSG = TEXT + CR + CR + MORETEXT       
                             
    EVAL        CMD = 'SNDDST TYPE(*LMSG) TOUSRID((INTERNET GATEWAY)) -     
                    TOINTNET((''' +
                    %TRIMR(&ADDRESS) +
                    ''' *PRI)) DSTD('E-Mail') LONGMSG('''' +
                    TRIMR(&MSG) + 
                    ''') DOCFILE(*NONE) SUBJECT(''' +
                    %TRIMR(&SUBJ) +
                    ''')' 
                                                            
         CALL      'QCMDEXC'                                
         PARM                    CMD                        
         PARM      512           LEN              15 5      

    15,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following