View previous topic :: View next topic
|
Author |
Message |
madhuinmumbai
New User
Joined: 31 Aug 2006 Posts: 1
|
|
|
|
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 |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
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 |
|
Back to top |
|
|
Selvamani
New User
Joined: 19 Dec 2006 Posts: 21 Location: California
|
|
|
|
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 |
|
|
Nighthawk750
New User
Joined: 04 Nov 2006 Posts: 20 Location: Amsterdam
|
|
|
|
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 |
|
|
Selvamani
New User
Joined: 19 Dec 2006 Posts: 21 Location: California
|
|
|
|
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 |
|
|
Praveen Kumar Singh Warnings : 1 New User
Joined: 02 Jan 2007 Posts: 6 Location: Mumbai
|
|
|
|
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 |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
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. |
|
Back to top |
|
|
|