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
 

 

IMS ISRT function is writing the value 0 instead of 5

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: IMS ISRT function is writing the value 0 instead of 5
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Tue Dec 19, 2006 9:37 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Jan 04, 2007 2:41 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm


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