Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is the following MOVE statement works without Error?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Fri Jan 05, 2007 5:29 pm    Post subject: Is the following MOVE statement works without Error?
Reply with quote

WORKING-STORAGE SECTION.
01 WS-LOGIN.
02 USER PIC X(8).
02 PASSWORD PIC X(8).

------------------
----------------------------
EXEC CICS
RECIEVE MAP('MAP1') MAPSET('SIS')
INTO (MAP1I)
END-EXEC.
PARA2.
MOVE USERNMI TO WS-LOGIN.
MOVE PASWDI TO WS-LOGIN

This "MOVE" statement is associated with cics-cobol.. Clear my doubt. CORRECT ME IF AM WRONG..
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Jan 05, 2007 6:07 pm    Post subject: Re: IS THAT MY 'MOVE' STATEMENT WORKS OR NOT
Reply with quote

ramvishwa wrote:
Code:
WORKING-STORAGE SECTION.
            01 WS-LOGIN.
                 02 USER PIC X(8).       
                 02 PASSWORD PIC X(8).

        ------------------
           ----------------------------
             EXEC CICS
                   RECIEVE MAP('MAP1') MAPSET('SIS')
                   INTO (MAP1I)
             END-EXEC.
      PARA2.
             
MOVE USERNMI TO WS-LOGIN.
MOVE PASWDI TO WS-LOGIN

This "MOVE" statement is associated with cics-cobol.. Clear my doubt. CORRECT ME IF AM WRONG..
It would work better if you did this:
MOVE USERNMI TO USER OF WS-LOGIN.
MOVE PASWDI TO PASSWORD OF WS-LOGIN
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us