MOVEL WITH TWO DIFFRENT SIZED FIELDS

1420 pts.
Tags:
AS/400
RPG
Have a two fields f1 and f2 with sizes 30 and 15 respectively, Can i perform MOVEL f1 f2 (i have data in the first 15 positions of f1)..will this pass the data to f2.

Software/Hardware used:
AS400, RPG 400,CLLE,

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: 6  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
  • TomLiotta
    What does the MOVEL documentation say? If it says you can, then you can. Otherwise, you can't. You need to understand how to look at documentation so that you don't have to wait for someone to decide to look it up for you. Further, documentation is authoritative, while public forum postings might have no basis in truth. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb

    I would recommend that move and movel not be used for any new code. 

    If you are doing maintenance it is necessary to understand these codes.  Make sure that you know the types as well as the sizes of the fields in the move.

    51,355 pointsBadges:
    report
  • Sai4AS400
    Data Types are Same as i mentioned earlier, Only size is different, Can i perform MOVEL are not? Please let me know.. Thanks.
    1,420 pointsBadges:
    report
  • Sai4AS400
    Data Types are Same as i mentioned earlier, Only size is different, Can i perform MOVEL or not? Please let me know.. Thanks.
    1,420 pointsBadges:
    report
  • TomLiotta
    What does the MOVEL documentation say? This isn't a training forum. If you have a problem using a language feature, tell us what the problem is. Show us the code and we'll see if anything looks wrong with it. The answer to your question is already in the documentation. If we answered every question that could be found by reading existing documentation, this site would quickly become filled with such questions and would become useless. -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb

    "Have a two fields f1 and f2 with sizes 30 and 15 respectively, Can i perform MOVEL f1 f2 (i have data in the first 15 positions of f1)..will this pass the data to f2."

    "Data Types are Same as i mentioned earlier" -- this I must have missed.

     

    If F1 is char 30 and it's moved with the movel to f2 char 15

    The first (leftmost) 15 characters of F1 will be placed in F2. 

     Alternatively the move command will move the last (right most) 15 characters.    

    51,355 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