IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get address of a record from a file using assembler?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Mon Sep 18, 2006 4:52 pm
Reply with quote

Hello Guys,

I know only two macro record formats for a flat file to access the records.

1. Put macro & 2. Get macro. Is there any other macro commands to access the records from the files. If so, please let me know with the syntax.

Also, Is there any possible way to get the address of record without using the get & put macro since this two is using a internal variable to access the record.

I once read about move macro to get the address of the record? if any one know about this macro please explain it with an sample..

Thanks in advance.

Regards,
Gokuldass
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Sep 18, 2006 5:09 pm
Reply with quote

Hi !

You can read a record of a file by issuing the get macro with the GL
(GetLocate) function. Then you have the adress of the record in register-1.

When you code GET FILE,INBER , you usin GM(GetMove) format
Tu use GL just code GET FILE.

In the DCB you have to specify the MACRF funktion GL


Regards, UmeySan
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 5
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top