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

READ NEXT in VSAM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Mar 29, 2011 3:46 pm
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: 1306
Location: Vilnius, Lithuania

PostPosted: Tue Mar 29, 2011 3:47 pm
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

Senior Member


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

PostPosted: Tue Mar 29, 2011 5:36 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
Search our Forums:

Back to Top