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
 

 

L1 and L4 command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Mon Jul 27, 2009 8:48 am    Post subject: L1 and L4 command
Reply with quote

Hi,

The L1 command reads a single record from Data Storage.
The L4 command is the same as the L1 command except that the record is placed in hold status.

My confusion is that, how can we know about

We do not write anything to put the record on hold. But internally how Adabas decides which record has to be put on hod?

Based on what, I can decide that my statement refers to L1 or L4 command?

similarly how can I decide about S1 and S4 command???

Thanks,
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 28, 2009 11:57 am    Post subject:
Reply with quote

It is up to you to decide if you want to hold the record while reading it.This is why ADABAS give you the flexibility of using L1 or L4. There are other methods of putting a record in HOLD within ADABAS, but L4 is the fastest.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Jul 28, 2009 10:05 pm    Post subject:
Reply with quote

Thank you Ofer for your response. But I still wonder on How to put the record on HOLD while accessing adabas.
Can you please give a small example?

Thanks in Advance
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Jul 28, 2009 10:50 pm    Post subject:
Reply with quote

Simply use L4. ADABAS will do the job for you.

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Tue Sep 01, 2009 11:14 pm    Post subject:
Reply with quote

Hello Ofer7,

I m still in confusion about the L4 command.

In general we use the READ command to read the adabas file.

How can I determine if my READ command is L1 or L4?

Is there something like I have to use any other command with READ to make it L4?

Thanks in Advance.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Sep 02, 2009 1:21 am    Post subject:
Reply with quote

L1 & L4 are direct ADABAS command. Natural interprets each of your data access statements to one ADABAS direct command or more.

Natural is smart enough to take care of your HOLD logic without you knowing about it. For example, if an UPDATE statement is coded within a READ loop, the record might be read with HOLD status.

To read more, please refer to the fine manual (Programming Guide --> Database Access --> Record Hold Logic).

O.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Wed Sep 02, 2009 7:46 am    Post subject:
Reply with quote

Thank you Ofer. I am clear now.... :-)
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm


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