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: 8057
Location: East Dubuque, Illinois, 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: 7315

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: 10256
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 Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm


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