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

IMS ISRT function is writing the value 0 instead of 5


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madhuinmumbai

New User


Joined: 31 Aug 2006
Posts: 1

PostPosted: Tue Dec 19, 2006 6:57 pm
Reply with quote

Hi All,

My requirement is to add one field to the existing record layout. and to modify the Lrecl of the output file which is a GSAM file by increasing 1 byte for the new field.

Now i am moving the value 5 to the new field suppose ( A ) and i am issuing a IMS ISRT function ,ISRT call was success . Before The ISRT function i am displaying the total OUTPUT-REC , and the New field i am able to see the value of 5. After the ISRT function also i put the display statements ..it is the same .

But when i am looking in to the file it is writing the value 0 instead of 5.

Madhu K
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Tue Dec 19, 2006 9:37 pm
Reply with quote

We need more info; at least I do. Please provide us with some additional information like code and definitions. No system in the world automatically modifies your 5 to 0 icon_rolleyes.gif
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Fri Dec 29, 2006 9:51 am
Reply with quote

These are the properties of GSAM

GSAM
COMPATIBLE WITH MVS DATASETS
NO HIERARCHY
CAN HAVE FIXED OR VARIABLE LENGTH RECORDS
NO DELETE OR REPLACE
INSERT ONLY AT THE END OF DATASET
GETS RECORDS SEQUENTIALLY
USUALLY USED WHEN CHECK/POINT RESTART IS USED.

I dont think you can insert data at the end of each records.
This says that you can only insert/add records at the end of dataset.
Back to top
View user's profile Send private message
Nighthawk750

New User


Joined: 04 Nov 2006
Posts: 20
Location: Amsterdam

PostPosted: Fri Dec 29, 2006 7:02 pm
Reply with quote

Selvamani wrote:
These are the properties of GSAM

I dont think you can insert data at the end of each records.
This says that you can only insert/add records at the end of dataset.


If you want to "insert data at the end of a record", you will actually issue a REPL-call, in which you overwrite existing data. Insert data at the end of a record, or any modification of an existing record at all, will be done with an REPL-call.
ISRT adds a new record.

In this case, it seems to me you have to create a new GSAM file with new LRECL, and then read from the old file, add the data to the record, and write the extended record to the new GSAM (with an ISRT).

But, like Bitneuker said, can you please provide us with some more details of what you are trying to do (source code etc).
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Sat Dec 30, 2006 12:27 am
Reply with quote

Quote:

If you want to "insert data at the end of a record", you will actually issue a REPL-call, in which you overwrite existing data. Insert data at the end of a record, or any modification of an existing record at all, will be done with an REPL-call.
ISRT adds a new record


Delete and Replace is not possible in GSAM
The only possible way is writing a new GSAM file with new required LRECL
Back to top
View user's profile Send private message
Praveen Kumar Singh
Warnings : 1

New User


Joined: 02 Jan 2007
Posts: 6
Location: Mumbai

PostPosted: Thu Jan 04, 2007 2:31 am
Reply with quote

Madhu

In GSAM you get record sequentially and can insert at the end of Dataset .
You are not clear in your words that what you have done exactly but while giving ISRT call it will creat a new field at end of dataset and you must pass REPL-call to replace the existing data.

Nighthawk750 may be correct in your case. Plz try to put down some more details.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Jan 04, 2007 2:41 am
Reply with quote

Seems Madha K's problem is solved (may be by clicking the link in my signature and do some searching) or is not able to reply to us. I suggest we wait till a reply reaches us, unless we want to discuss the GSAM thing for fun; in that case I will be pleased to join the discussion. icon_wink.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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
Search our Forums:

Back to Top