Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
EnjoyMF

New User

Joined: 27 May 2005
Posts: 88

 Posted: Mon Aug 29, 2005 4:14 pm    Post subject: if the number is less than 8 i need to suffix the zeros for 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

gowtham_srgp

New User

Joined: 09 Jun 2005
Posts: 38

Posted: Mon Aug 29, 2005 4:46 pm    Post subject: Re: cobol logic

 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
mmwife

Super Moderator

Joined: 30 May 2003
Posts: 1592

 Posted: Wed Aug 31, 2005 5:16 am    Post subject: 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.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics INVALID RECFM FOR DDNAME SYSLIN AND C... sandeep kumar302 All Other Mainframe Topics 7 Fri Apr 27, 2018 6:07 pm Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us