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
 

 

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 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
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts Coverting PD to FS and also left just... Atul Banke DFSORT/ICETOOL 6 Wed Aug 24, 2016 4:31 pm
No new posts technology shift from Mainfame to AS400 Prayag P V All Other Mainframe Topics 3 Tue Jul 19, 2016 12:13 pm


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