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
 

 

Please analise the code and let me know its function (urgent

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
tanguduk
Warnings : 1

New User


Joined: 29 Aug 2005
Posts: 14

PostPosted: Thu Apr 10, 2008 3:18 pm    Post subject: Please analise the code and let me know its function (urgent
Reply with quote

Code:
 MVC   0(1,RZ),=C' '         
 MVC   1(79,RZ),0(RZ)         
 MVC   1(7,RZ),=C'HDELETE'   
 MVC   9(1,RZ),=X'7D'         
 MVC   10(45,RZ),0(RX)       
 LA    RV,10(RZ)             
 CLC   0(1,RV),=C' '         
 BE    20                     
 LA    RV,1(RV)               
 B     10                     
 MVC   0(1,RV),=X'7D'         
 BAL   SYSUT2(RZ)             
 B     DELETE(RX)             
 END
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Apr 10, 2008 3:20 pm    Post subject: Reply to: Please analise the code and let me know its functi
Reply with quote

Please do not use the urgent term,

why not ask the person who wrote/provided You the code snippet ??
Back to top
View user's profile Send private message
tanguduk
Warnings : 1

New User


Joined: 29 Aug 2005
Posts: 14

PostPosted: Thu Apr 10, 2008 3:32 pm    Post subject: Reg assembler code
Reply with quote

As we are not able to find out I posted in this forum.

Regards
Kiran tangudu
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Apr 10, 2008 3:44 pm    Post subject: Reply to: Please analise the code and let me know its functi
Reply with quote

the code snippet is building a 80 chars buffer containing an hdelete command

is that part of code You are using already ?
is it working the way You want
are You trying to modify it ?
it' s a new tool You are trying to write ?

the answer/suggestion might be different depending on the environment
anyway I guess You made some typing errors, the code snippet as shown
will not even compile cleanly
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Thu Apr 10, 2008 8:53 pm    Post subject:
Reply with quote

Where are the labels '10' & '20'?
FWIW, I would have used an MVI for that first MVC.......
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Apr 10, 2008 11:43 pm    Post subject:
Reply with quote

Your are moving 45 bytes (dataset name?) into the area after the word HDELETE. Then looping to find the end of the name (a space) and putting the ending quote (') there before falling through BAL.
Back to top
View user's profile Send private message
tanguduk
Warnings : 1

New User


Joined: 29 Aug 2005
Posts: 14

PostPosted: Fri Apr 11, 2008 10:33 am    Post subject: Reply to: Please analise the code and let me know its functi
Reply with quote

Hi All.

Thank u very much for your help.

Regards
Kiran
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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