Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Change the key length in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
Author Message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 46
Location: USA

PostPosted: Wed Apr 02, 2008 11:16 pm    Post subject: Change the key length in batch
Reply with quote

Hi All,

In CICS, we can change the key length and we can read the KSDS file.
for example, if key has 10 bytes( 2 fields), then we can change the key length dynamically to 5 bytes and get the records instead START on the file.

Like this can we do in batch also.. same VSAM KSDS file.

Please let me know

Thank you
Sree
Back to top
View user's profile Send private message
References
PostPosted: Wed Apr 02, 2008 11:16 pm    Post subject: Re: Change the key length in batch Reply with quote

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1190
Location: At my desk

PostPosted: Wed Apr 02, 2008 11:31 pm    Post subject: Re: change the key length
Reply with quote

srebba wrote:
In CICS, we can change the key length and we can read the KSDS file.
for example, if key has 10 bytes( 2 fields), then we can change the key length dynamically to 5 bytes and get the records instead START on the file.

Like this can we do in batch also.. same VSAM KSDS file.
Yes, sort of, but not without the START verb....
Back to top
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 46
Location: USA

PostPosted: Wed Apr 02, 2008 11:37 pm    Post subject:
Reply with quote

so you mean, we have to use START verb in batch program..

am i right ?
Back to top
View user's profile Send private message
Bill O'Boyle

Active User


Joined: 14 Jan 2008
Posts: 293
Location: Orlando, FL, USA

PostPosted: Wed Apr 02, 2008 11:52 pm    Post subject:
Reply with quote

Well, you CAN issue a partial-key direct READ, using a keylength-halfword value along with the GENERIC option.

But for the most part, a STARTBR is the most popular command used to begin reading a KSDS file using a partial-key.

Again, don't forget the GENERIC parameter, which is required. Otherwise, you'll raise an INVREQ condition.

HTH....

Regards,

Bill
Back to top
View user's profile Send private message
Bill O'Boyle

Active User


Joined: 14 Jan 2008
Posts: 293
Location: Orlando, FL, USA

PostPosted: Wed Apr 02, 2008 11:56 pm    Post subject:
Reply with quote

Oops! That one went right by me. icon_redface.gif

Do what CICS Guy has suggested.

Regards,

Bill
Back to top
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 46
Location: USA

PostPosted: Thu Apr 03, 2008 12:07 am    Post subject:
Reply with quote

HI Bill O'Boyle
we can do it in CICS as you said,

but can we do in batch.. I dont want use START command as in CICS..
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1190
Location: At my desk

PostPosted: Thu Apr 03, 2008 12:34 am    Post subject:
Reply with quote

srebba wrote:
we can do it in CICS as you said,
but can we do in batch.. I dont want use START command as in CICS..
If you want to use a key shorter than the one defined for the dataset, you will need to use the START followed by READ NEXT/PREVIOUS.....
Back to top
View user's profile Send private message
rpuhlman

Active User


Joined: 11 Jun 2007
Posts: 75
Location: Columbus, Ohio

PostPosted: Thu Apr 03, 2008 8:45 pm    Post subject:
Reply with quote

Hi Sree,

There is a great book called "VSAM for the COBOL Programmer" by Doug Lowe. Go to www.murach.com ... they have it for $22.00 dollars. You will learn many processing techniques in both the batch and online environments.

Rick
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1