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

Length of the Field in the Record.


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

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Tue Mar 03, 2009 5:16 pm
Reply with quote

Hi ,
Is there any way to find the number of alphabets in a field using SYNCSORT/DFSORT.

Input
Code:
abcd   efgh    ijklmn
00000000011111111112
12345678901234567890


I need to calculate the number of alphabets in between the column 7 to 14 .

So the

Output :-
4 (as 7th column is the alphabet 'e' and it is followed by 3 alphabets )
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 03, 2009 5:19 pm
Reply with quote

Which product do you actually use - SYNCSORT or DFSORT
Back to top
View user's profile Send private message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Tue Mar 03, 2009 5:23 pm
Reply with quote

We use SYNCSORT V1.2

and the spaces in the input has got removed while pasting in the previous post . Basically we need to know the number of alphabets in between a specified column and the count should not include the "spaces".
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 Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top