Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1047
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: 965
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 how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us