MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Create SYMNAMES more than 72 bytes.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Sun Jun 28, 2015 11:49 pm    Post subject: Create SYMNAMES more than 72 bytes. Reply with quote

Hi,

Is it possible to create a SYMNAMES as follows ?

Code:

VALID,C'0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,U,V,W,X,Y,Z,&,-, '


The problem we have is it crosses 72 bytes of record length.

Regards,
Magesh
Back to top
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon Jun 29, 2015 3:01 am    Post subject: Reply with quote

No, you can't extend a symbol. Can you show the code you're trying to use it it, and describe what you are attempting?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Jun 29, 2015 10:17 am    Post subject: Reply with quote

Magesh_J,

As William pointed out, you cannot have more than 64 characters for a symbol. I am guessing that you want to have a symbol to identify the valid alphanumeric and some special characters.

Just so you are aware with DFSORT V2R1 you can use the new UC, LC, MC, UN, LN and MN keywords (similar to the previously available NUM keyword) which now allow you to test a field for various combinations of alphanumeric characters or non-alphanumeric characters using binary (BI) format. The new keywords allow you to select any of the following alphanumeric character sets:
Code:

 UC: Uppercase characters (A-Z)
 LC: Lowercase characters (a-z)
 MC: Mixed case characters (A-Z, a-z)
 UN: Uppercase and numeric characters (A-Z, 0-9)
 LN: Lowercase and numeric characters (a-z, 0-9)
 MN: Mixed case and numeric characters (A-Z, a-z, 0-9)


Alternatively you can split the symbol values into multiple symbols and then validate them

Code:

//SYMNAMES DD *                                                 
VALID_ALPHA,C'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,U,V,W,X,Y,Z'
VALID_NUM,C'0,1,2,3,4,5,6,7,8,9'                                 
VALID_SPCL,C'&,-, '                                               


and you can use them as follows

Code:

  INCLUDE COND=(1,1,SS,EQ,VALID_ALPHA,OR,
                1,1,SS,EQ,VALID_NUM,OR,   
                1,1,SS,EQ,VALID_SPCL)     

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Mon Jun 29, 2015 10:55 am    Post subject: Reply with quote

Thank you very much Kolusu.

This is what I am looking at.

Yes, I am just validating each character of a particular field.

Regards,
Magesh J
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group