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

How can i insert Long string through JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Sat Nov 04, 2006 6:14 pm
Reply with quote

Hi Can anyone please tell me how can i insert Long string through JCL SYSTSIN parameter.

I have to insert a long error message in DB2 table.

Example query is given below.

INSERT INTO table
error_message
VALUES ( 'please enter date...(some big message) in valid format -- yyyy/mm/yy')


Now the problem with this message is, it is going beyong 72th (even 80th) column and i need to continue this error message in the next line.

Can anyone tell me how to give continuation in SYSTSIN in JCL?

I tried with continuation at 72th column but its abending giving message like ' Passing string too long'
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sat Nov 04, 2006 11:17 pm
Reply with quote

Try like this... putting a plus sign at last for continuation...

Code:
INSERT INTO table
error_message
VALUES ( 'please enter date...(some big message) in +                           
valid format -- yyyy/mm/yy')
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Mon Nov 06, 2006 5:16 pm
Reply with quote

Hi Priyesh,
Thanks A lot for reply.

Can you please tell me where should i place that plus '+' sign.

I think it should be at 72th column but just to make sure i am asking.

Thanks,
Rajen.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Nov 06, 2006 6:41 pm
Reply with quote

You could also just make the dataset's LRECL larger, so that you might be able to fit the data on one record.

Just a thought.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Nov 07, 2006 2:30 am
Reply with quote

Do you really need a continuation. Below query works just fine for me.

Code:
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
****** ***************************** Top of Data ******************************
000010    INSERT INTO CREATOR.TABLE_NAME
000012    VALUES ('PRIYESH TST',1,'THIS IS A TEST RECORD PLEASE IGNORE THE SAME
000013 , DONT CONSIDER');                                                     
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Wed Nov 08, 2006 4:53 pm
Reply with quote

Hi Priyesh,
Thanks again for reply.
I guess u have used comma (,) on 7th or 8th charactor. Earlier i mentioned about that continuation charactor.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Nov 09, 2006 4:34 am
Reply with quote

Hi Rajen,

That comma (",") is a part of my string to be loaded onto Table, not a continuation character. Thus my field value after upload would looks like below.

Code:
THIS IS A TEST RECORD PLEASE IGNORE THE SAME  , DONT CONSIDER
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
Search our Forums:

Back to Top