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: 2024
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top