Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
removing Leading Zeros and left shift the value

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

New User


Joined: 18 Apr 2009
Posts: 47
Location: India

PostPosted: Mon Feb 08, 2010 3:36 pm    Post subject: removing Leading Zeros and left shift the value
Reply with quote

Hi all,

Below is the one to remove the leading spaces of the field and left shift the values.

Code:

1,11,SQZ=(SHIFT=LEFT,MID=C' ')


Can anyone pls provide for, Removing Leading Zeroes and left shift the values

Field Position - 1 to 11
type - numeric
LRECL - 4000

As of now, i am using some thing like this:

Code:

1,11,SQZ=(SHIFT=LEFT,MID=C'0')


but the zeroes are not removed...

Thanks in Advance.
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Feb 08, 2010 3:46 pm    Post subject:
Reply with quote

Quote:

As of now, i am using some thing like this:


Code:
1,11,SQZ=(SHIFT=LEFT,MID=C'0')



but the zeroes are not removed...


Yes. Correct. It is working as expected. icon_smile.gif
You need to check respective sort product manual to check for what MID is used. I think you have misunderstood..
Back to top
View user's profile Send private message
rkarthik22

New User


Joined: 18 Apr 2009
Posts: 47
Location: India

PostPosted: Mon Feb 08, 2010 4:18 pm    Post subject: Reply to: removing Leading Zeros and left shift the value
Reply with quote

I will check the Manual.

Our shop uses SYNCSORT FOR Z/OS 1.3.0.2R

(I also tried with the below one

SQZ=(SHIFT=LEFT,PREBLANK=C'0')

no use...)

Thanks for your Help!!
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 Squeeze record left so that zeroes ar... Vignesh Sid SYNCSORT 5 Fri Nov 10, 2017 1:40 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am

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