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
 

 

READ NEXT in VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rackshit

New User


Joined: 19 Dec 2009
Posts: 16
Location: Mumbai

PostPosted: Tue Mar 29, 2011 3:14 pm    Post subject: READ NEXT in VSAM
Reply with quote

Hi,

Im writing a code to retrieve records from VSAM file with partial key known.

I have a START command in my code as
Code:
START INPUT-VSAM-FILE
  KEY IS NOT LESS THAN <REC-KEY>.


Now when my next statement
Code:
READ INPUT-AO-VSAM NEXT.

is executed which record will be read ?

REC-KEY is 10 in length with 1st 7 chars known and other 3 chars unknown. (partial key)

i want to read all the records whose 1st 7 chars are known with help of read next. To use the START command i have initialised 1st 7 chars with known value and the next 3 chars with low values.

Now suppose if the data really contains the next 3 chars as low values then will that record be read ?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 29, 2011 3:46 pm    Post subject:
Reply with quote

What happened when YOU tried it out
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1002
Location: Oostende, Belgium

PostPosted: Tue Mar 29, 2011 3:47 pm    Post subject:
Reply with quote

x'11223344556677000000' is NOT LESS than x'11223344556677000000'.

Was that so hard? Probably for a "ng&#432;&#417;&#832;i da&#803;i kh&#417;&#832;" as you it was...
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Tue Mar 29, 2011 5:36 pm    Post subject:
Reply with quote

LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY LAZY I could go on.

Do you want to learn it, or learn what someone says about it?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 4 Wed Jan 11, 2017 6:18 pm


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