Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Issue in FROMKEY(REPRO) VSAM having 102 Char key

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
thesumitk

Active User


Joined: 24 May 2013
Posts: 129
Location: INDIA

PostPosted: Tue Jul 07, 2015 5:33 pm    Post subject: Issue in FROMKEY(REPRO) VSAM having 102 Char key
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: 7913
Location: Bellevue, IA

PostPosted: Tue Jul 07, 2015 5:51 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Tue Jul 07, 2015 6:18 pm    Post subject: Reply to: Issue in FROMKEY(REPRO) VSAM having 102 Char key
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: 129
Location: INDIA

PostPosted: Tue Jul 07, 2015 6:32 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Tue Jul 07, 2015 6:38 pm    Post subject: Reply to: Issue in FROMKEY(REPRO) VSAM having 102 Char key
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: 129
Location: INDIA

PostPosted: Mon Jul 20, 2015 5:11 pm    Post subject:
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    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 BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us