Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10375
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: 10375
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 IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us