MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to read a VBS dataset in assembler

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
rajib76
Beginner


Joined: 13 Jun 2016
Posts: 1
Topics: 1

PostPosted: Tue Jun 14, 2016 10:24 am    Post subject: How to read a VBS dataset in assembler Reply with quote

Hi
Can you please let me know how to read a VBS dataset in assembler.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11813
Topics: 74
Location: San Jose

PostPosted: Tue Jun 14, 2016 12:02 pm    Post subject: Reply with quote

rajib76,

There is nothing special in reading a VBS datasets in assembler. If you use QSAM GET, it automatically gets the RDW for you. Sample code

Code:

         MVC   OPENPL(MOPENPLL),MOPENPL  Copy model Open Plist
         MVC   VBSDATA(MVBSDATAL),MVBSDATA COPY VBSDATA DCB 
         OPEN  (VBSDATA,INPUT),MF=(E,OPENPL)

         LA    R2,RECAREA                                     
         USING VBSRCD30,R2                                   
         GET   VBSDATA,RECAREA    Read data into RECAREA     

VBSDATA  DS    XL(MVBSDATAL)      Reference DCB - VBSDATA

RECAREA  DS    (32768+4)X
MOPENPL  OPEN  (,),MF=L 
MOPENPLL  EQU  *-MOPENPL

MVBSDATA  DCB   DDNAME=VBSDATA,MACRF=GM,DSORG=PS,DEVD=DA,EODAD=EOD
MVBSDATAL EQU  *-MVBSDATA                                       

_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group