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
 
if the number is less than 8 i need to suffix the zeros for

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
EnjoyMF

New User


Joined: 27 May 2005
Posts: 88

PostPosted: Mon Aug 29, 2005 4:14 pm    Post subject: if the number is less than 8 i need to suffix the zeros for
Reply with quote

Hi all

i have a alphanumeric field of length 8,
the input to this field is a account number and the account number can vary from 4 to 8 length
if the number is less than 8 i need to suffix the zeros for them

example
(B - spaces ) 1234BBBB then output should be 00001234
12345BBB then output should be 00012345

plz can any one sugguest me a simple logic for that

Regards
prasad
Back to top
View user's profile Send private message

gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Mon Aug 29, 2005 4:46 pm    Post subject: Re: cobol logic
Reply with quote

EnjoyMF wrote:
Hi all

i have a alphanumeric field of length 8,
the input to this field is a account number and the account number can vary from 4 to 8 length
if the number is less than 8 i need to suffix the zeros for them

example
(B - spaces ) 1234BBBB then output should be 00001234
12345BBB then output should be 00012345

plz can any one sugguest me a simple logic for that

Regards
prasad



hai. you get the alphanumeric data and move it to a numeric identifier. the leading zeroes will be present. if there happens to be a alphaetic entry for the account number, there can be a problem of soc-7...


corrections welcomed.......


gowtham
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Aug 31, 2005 5:16 am    Post subject:
Reply with quote

Hi Prasad,

When asking for logic help you should show us what you have tried and what probs you encountered.

Then we can make suggestions that you can try and report back on your progress.

Asking us to solve your problem for you is not the way to go. You'll learn a lot more if you try to solve it yourself.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm

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