Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 147
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: 8491
Location: Dubuque, Iowa, USA

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: 7312

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: 147
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

Senior Member


Joined: 14 Mar 2007
Posts: 10626
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: 147
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 REXX VSAM Harold Barnes CLIST & REXX 2 Sat Oct 05, 2019 2:38 pm
No new posts Issue in NDM : Connect Direct janmejay All Other Mainframe Topics 0 Sat Sep 28, 2019 12:05 pm
No new posts CICS VSAM file max volumes socker_dad JCL & VSAM 4 Tue Aug 20, 2019 1:28 am
No new posts Z/OSMF start issue asmanyam IBM Tools 4 Tue Aug 13, 2019 2:46 pm
No new posts Unable to delete dataset - VSAM datas... netcrawler JCL & VSAM 20 Fri Jul 26, 2019 2:06 pm

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