View previous topic :: View next topic
|
Author |
Message |
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Hi All,
Need help on below scenario !!
I am in need to copy certain VSAM files behalf of the keys supplied.
Some of the files having long key as 102 char , Now if I give the key in continuation till next line then I am getting below error
Code: |
IDCAMS SYSTEM SERVICES TIME: 07:48:45
REPRO INFILE(RMSUDXI) OUTFILE(RMSUDXO) -
FROMKEY('BOAW U1CARD ADDISON,DA -
VID J. 1278095 ') -
TOKEY('BOAW U1CARD CALKINS,DONA -
LD 1268961 ')
IDC3302I ACTION ERROR ON RMPP.CICS.RMS.RMSUDX
IDC3310I ** KEY SUPPLIED IS LONGER THAN KEY LENGTH OF DATA SET
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3006I FUNCTION TERMINATED DUE TO BEGINNING POSITIONING ERROR
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12 |
Below is the In stream data I am suing
Code: |
FROMKEY('BOAW U1CARD ADDISON,DA-
VID J. 1278095 ') -
TOKEY('BOAW U1CARD CALKINS,DONA-
LD 1268961 ') |
Can some please help in this scenario.
Please let me know if I am not clear above or if anyone need more information on this. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
From the Access Method Services for Catalogs manual in the DFSMS bookshelf:
Quote: |
PREFACE.6.5 How to continue commands and parameters
Commands can be continued on several records or lines. Except for the last line, each record or line must have a hyphen or a plus sign as the last nonblank character before, or at, the right margin. A hyphen continues the command. A plus sign continues both the command and a value within the command. Examples of these two types of continuation are:
DELETE -
(ENTRY1 -
ENTRY2 -
ENTR+
Y3) -
NONVSAM |
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, your data that you are supplying is 102 bytes long. AMS says this is longer than the key-length of the dataset. So, what is the key-length of the dataset? It is less than 102, so you can only supply a key of the same length at most. |
|
Back to top |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Thanks Bill for the response!!
The Key of the VSAM file is of 102 Char.
I guess I read it somewhere that key can be of 1 to 255 EBCDIC Character.
Please let me know if I am on wrong path. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
use the + as continuation ...
as shown in the snippet posted by Robert |
|
Back to top |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Thanks all for your response , the + sign worked
Thanks Much |
|
Back to top |
|
|
|