IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Store the data for fixed length


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
themants

New User


Joined: 11 Aug 2022
Posts: 9
Location: india

PostPosted: Wed Apr 03, 2024 7:20 pm
Reply with quote

I have a screen variable which is alphanumeric of length 5 where we can get the value of any length upto 5 but we would need to store the data of fixed length 5 in table with the starting character as '+' or '-'.

For example :-
I am getting the input as " 3 " so we would store the value in table as "+0003".
"-001" -> "-0001"
" -5 " -> "-0005"
" +03" -> "+0003"

please let me know how can i proceed.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2119
Location: USA

PostPosted: Wed Apr 03, 2024 8:10 pm
Reply with quote

At this forum people only can advise you: WHAT IS, OR MAY BE WRONG IN THE CODE YOU PRESENTED.

People at this forum usually do not do your own job in full.
Nevertheless, there are also exceptions... icon_pai.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts External data queue (changes?) CLIST & REXX 0
No new posts Pull data using date difference betwe... DB2 6
No new posts fast data scrambling PL/I & Assembler 10
No new posts Get RECORD LENGTH, allocated space of... CLIST & REXX 7
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
Search our Forums:

Back to Top