Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
Author Message
rkarthik22

New User


Joined: 18 Apr 2009
Posts: 34
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
References
Sambhaji

Active Member


Joined: 16 Feb 2007
Posts: 841
Location: Pune, India

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: 34
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1