Advertisement

07.09.2008 at 07:35AM PDT, ID: 23550401
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Passing Parms to a CL (CLP) program - AS400/i-Series/System I/I6,etc

Asked by Jackson_62 in Programming for iSeries / AS400, AS / 400

I am having problems witgh passing of variables to a CL program.  The variables are as follows

parm1 = '1'  (possible 11 long)
parm 2 = '070808' (possible 6 long)
parm3 = 'This is a test subject' (possible 60 long)
parm4 = 'Message 1" (possible 200 long)
Parm5= Message 2 (possible 200 long)

When I send them to the CLP program (which submits a second job (see code snipets for code and resulting email)), the data gets all hosed up (as shown by the email I finally receive).  Any thoughts to making this work ?  I tried not defining the LEN for the over 32 byte parms, but of course, the system defaults to 32 so that won't work

please HELP ! - I am close to just wrting somethign in RPGLE to handle this insteadStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
Program 1
PGM        PARM(&ID &MMDDYY &SUB &TEXT1 &TEXT2)    
DCL        VAR(&MMDDYY) TYPE(*CHAR) LEN(6)         
DCL        VAR(&ID) TYPE(*CHAR) LEN(11)            
DCL        VAR(&SUB) TYPE(*CHAR) LEN(60)           
DCL        VAR(&TEXT1) TYPE(*CHAR) LEN(200)        
DCL        VAR(&TEXT2) TYPE(*CHAR) LEN(200)        
SBMJOB     CMD(CALL PGM(CRMEMAILSB) PARM(&ID &SUB +
             &TEXT1 &TEXT2)) SCDDATE(&MMDDYY)      
ENDPGM                                             
 
Program 2
 PGM        PARM(&ID &SUB &TEXT1 &TEXT2)                
 DCL        VAR(&ID) TYPE(*CHAR) LEN(11)                
 DCL        VAR(&USER) TYPE(*CHAR)  LEN(10)             
 DCL        VAR(&END) TYPE(*CHAR) LEN(1)                
 DCL        VAR(&SEQ) TYPE(*CHAR) LEN(5)                
 DCL        VAR(&SUB) TYPE(*CHAR)   LEN(60)             
 DCL        VAR(&TEXT1) TYPE(*CHAR) LEN(200)            
 DCL        VAR(&TEXT2) TYPE(*CHAR) LEN(200)            
 DCL        VAR(&TEXT) TYPE(*CHAR) LEN(400)             
 DCL        VAR(&EMAIL) TYPE(*CHAR) LEN(54)             
 CHGVAR     VAR(&TEXT) VALUE(&TEXT1 *CAT &TEXT2)        
SNDDST     TYPE(*LMSG) TOINTNET((&EMAIL)) DSTD('CRM +  
             Email') LONGMSG(&TEXT) +                  
             USRID(*CURRENT) SNDFMT(*NOCHG) +          
             SUBJECT(&SUB) DOCDATE(*CURRENT)   
 
email I received
 
Subject = This is a test subject                 message1message2
 
body of email = 
 
message1                         message2                          
 c     o    
QCLSRCo     APTGENBU1f    
SRCMBRØ    o    }CRMEMAILSBf Ø  REPLACEØ    e    S*YES»     Emessage2            message2                          
 c     o    
QCLSRCo     APTGENBU1f    
SRCMBRØ    o    }CRMEMAILSBf Ø  REPLACEØ    e    S*YES»     28B0000000000' X'9485A2A2818785F2404040404040404040404
[+][-]07.09.2008 at 08:11AM PDT, ID: 21964518

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 08:13AM PDT, ID: 21964544

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 08:19AM PDT, ID: 21964611

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 09:00AM PDT, ID: 21965173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:00AM PDT, ID: 21965846

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:04AM PDT, ID: 21965882

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:21AM PDT, ID: 21966043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:46AM PDT, ID: 21966306

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:56AM PDT, ID: 21966417

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for iSeries / AS400, AS / 400
Sign Up Now!
Solution Provided By: Gary_The_IT_Pro
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628