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

Issue in FROMKEY(REPRO) VSAM having 102 Char key


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Tue Jul 07, 2015 5:33 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 07, 2015 5:51 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 07, 2015 6:18 pm
Reply with quote

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
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Tue Jul 07, 2015 6:32 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jul 07, 2015 6:38 pm
Reply with quote

use the + as continuation ...
as shown in the snippet posted by Robert
Back to top
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 156
Location: INDIA

PostPosted: Mon Jul 20, 2015 5:11 pm
Reply with quote

Thanks all for your response , the + sign worked


Thanks Much
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top