Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to edit hexa value in the file

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

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Mon Aug 29, 2011 1:22 pm    Post subject: How to edit hexa value in the file
Reply with quote

Hi

I have a requirement like below;

File having 100 records. First 2 byrtes having numbers.
like rec1 is 1
rec2 is 2 ...so on.
I am going to add 10 more recs to above file.i want the continue number.
like 100 last records.
next 10 records count should be 101,102....

please help me on this.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Aug 29, 2011 1:32 pm    Post subject: Reply to: How to edit hexa value in the file
Reply with quote

What is the problem that you are having in doing this?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon Aug 29, 2011 1:34 pm    Post subject:
Reply with quote

jmreddymca wrote:
please help me on this.


you need to define the record layout (first field anyway).

what type of file?

how are you going to add records?
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Mon Aug 29, 2011 2:22 pm    Post subject: Reply to: How to edit hexa value in the file
Reply with quote

Is this an exercice or a real requirement ?
Is it a sequential or a VSAM file ?
Do you have to do this in COBOL ?
Do you have other things to do on the file/records ?
Is the number binary or packed ? Give record layout.
Back to top
View user's profile Send private message
jmreddymca
Warnings : 1

New User


Joined: 14 Oct 2007
Posts: 29
Location: Bangalore

PostPosted: Tue Aug 30, 2011 3:35 am    Post subject: Reply to: How to edit hexa value in the file
Reply with quote

it's flat file, it's real time scenario only. using that file i am going to load into my table. Actually table is having 1st set of records. I want load 2nd set. if i use same sequence it will discard. i want this thru jcl.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 30, 2011 3:53 am    Post subject:
Reply with quote

You persist in NOT answering questions. Your first post states the sequence numbers are 2 bytes, yet you then talk about 100, 101, 102 ... which are THREE bytes. So are you using binary (COMP) or packed decimal (COMP-3) to store the values or another coding scheme you did not bother to explain, or are you just planning on violating the laws of mathematics and physics?

Next, you posted in the COBOL forum yet you say you "want this thru jcl" (sic). If you did not want a COBOL solution, why post in the COBOL forum?

Third, JCL does nothing but execute programs. Hence what you want to do cannot be done at all, period. If you had wanted to do this in a batch job using SORT, for example -- that's something very different (and terminology is critical in IT where similar terms may mean very different things -- running a batch job using SORT is NOT the same as doing something "thru jcl"). But as you stated your problem, it cannot be done.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Aug 30, 2011 4:32 am    Post subject:
Reply with quote

OK, flat file I understand - QSAM.

"real time scenario only" - what do you mean by that?

"table" - what do you mean by that? DB2?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Aug 30, 2011 10:13 am    Post subject:
Reply with quote

Hello,

Does your subject (How to edit hexa value in the file) have anything to do with what you are trying to do?

As you seem to be lost and are unwilling to post sufficient info for us to help, suggest you implement usng COBOL . . .
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us