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

Write Character to Hexadecimal file without conversion


IBM Mainframe Forums -> COBOL Programming
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
premnath

New User


Joined: 08 Jan 2006
Posts: 15

PostPosted: Sun Dec 20, 2020 7:38 am
Reply with quote

I have a four digit variable which is numeric (pic 9(4))..whatever value i get
here i need to write to a hexadecimal file up and down .Below is example

Value of numeric variable WS-SEQ-NO = 0001 ==> Numeric variable (pic 9(4))
in Output file it should write as
Code:
 x'0001'
.it should look like below in file .
Code:
00
01

Then i will increment variable WS-SEQ-NO value by 1
Code:
"ADD 1 TO WS-SEQ-NO "


Now value of numeric variable WS-SEQ-NO = 0002
Now it should become
Code:
x'0002'
and in my hexadecimal file it should
display as
Code:
00
02


Can any one provide a solution to this ??
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sun Dec 20, 2020 3:04 pm
Reply with quote

Yes. How much are you willing to pay?

What is a 'hexadecimal file'? Looks like you need an output sequential dataset with 2 lines for each line of input.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Sun Dec 20, 2020 10:41 pm
Reply with quote

Use DFSORT or SYNCSORT , please google or search this forum how to convert ZD to PD using it and you will get hundreds of links. Give it a try yourself, it’s simple.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Mon Dec 21, 2020 1:42 am
Reply with quote

Again: it all sounds like a new task being given by a manager to his employees (or slaves?) at this forum.

And again: the task itself has the level of a test question for a first grade student...
Back to top
View user's profile Send private message
premnath

New User


Joined: 08 Jan 2006
Posts: 15

PostPosted: Mon Dec 21, 2020 3:23 pm
Reply with quote

Looks like this forum here is currently used to post their review comments /opinions on individuals who trying to clarify their technical questions .could see Lack of maturity in few replies. Kindly use your technical skills positively by throwing light for people who need guidance or clarification. Mere Criticizing of Individuals never going to market yourself as technically strong neither as matured professional .If you see question is not relevant ,could criticize the question, not individuals or his level of knowledge .By doing so you are exposing your negativity in public forum .
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Mon Dec 21, 2020 6:03 pm
Reply with quote

And the way you posed your question makes it appear as though you want us to do your work whereas you need to do the work and if you have a problem then you explain it along with the code that you have already developed.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Mon Dec 21, 2020 6:37 pm
Reply with quote

premnath wrote:
Looks like this forum here is currently used to post their review comments /opinions on individuals who trying to clarify their technical questions .could see Lack of maturity in few replies. Kindly use your technical skills positively by throwing light for people who need guidance or clarification. Mere Criticizing of Individuals never going to market yourself as technically strong neither as matured professional .If you see question is not relevant ,could criticize the question, not individuals or his level of knowledge .By doing so you are exposing your negativity in public forum .


Your style of questioning is like this:
Quote:
I have a requirement to do this and this... (Assumed: I have not a minor idea what it is, and how to deal with all this stuff)
Please, give me possible solution (Assumed: put here your solution with minimum discussions, for me to copy-and-paste your code into my project, and to report to my manager)
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Dec 21, 2020 7:02 pm
Reply with quote

looks like everybody around is suffering from hemorroids icon_cool.gif

imagine what will happen after all the unhealthy eating in the festivities
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Mon Dec 21, 2020 10:08 pm
Reply with quote

Locking the post. This is not going anywhere. Try DFSORT or SYNCSORT as suggested or use COMP-3 in COBOL on the way out when you write.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top