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

How to continue DB2 PARMS in new line.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhee_rb

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Thu Feb 04, 2010 7:41 pm
Reply with quote

Hi

I wanted to add one more parameter to existing parms(parm has alredy reached 72 chrs)

Can anybody pls help me how to (continue in new line) add the new parm(length is 3bytes) to the below parms.


//LOAD0000.SYSTSIN DD *
DSN SYSTEM(DB2T)
RUN PROG(DTXCMDSV) -
PLAN(HIPLAN0) -
PARMS('MA -IF1 I1 -IF2 EMCNPIDT -OF1 O1 -OF2 F2 -OF3 F3 /VX15 I1 –ADE')
END
/*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Feb 04, 2010 9:21 pm
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". Among these is the JCL Language Reference. Search that manual for info on PARM. There is both an explanation of what you want to do and at least one example.

If you find something in the manual that is not clear, post what you found and your doubt about it. Someone will be able to clarify.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Mar 07, 2010 8:04 am
Reply with quote

Hello,

A bit of an update. . .

I mis-read the original question icon_redface.gif

Quote:
PARMS(parameter-string)
parameter-string is a list of parameters that are to be passed to your application program. Separate items in the list with commas, blanks, or both, and enclose the list between apostrophes. If the list contains apostrophes, represent each apostrophe by using two consecutive apostrophes. The list is passed as a varying-length character string of 1- to 100-decimal characters.


Another question came my way and when i heard the new question, i remembered this topic.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Mar 07, 2010 4:04 pm
Reply with quote

As I don't know the answer, I ran a small job of mine:
Code:
Input1:
//SYSTSIN  DD *
  DSN SYSTEM(DB2T)
  RUN PROGRAM(MARSO002) PLAN(TRBATCH) PARMS('JU' -
  'LIAN')
  END
/*

Output1:
RUN PROGRAM(MARSO002) PLAN(TRBATCH) PARMS('JU'   'LIAN')
IKJ56716I EXTRANEOUS INFORMATION WAS IGNORED: 'LIAN'         

** MARSO002 ** INVALID PARM=JU

Doesn't work. Let's try again:
Code:
Input2:
//SYSTSIN  DD *
  DSN SYSTEM(DB2T)
  RUN PROGRAM(MARSO002) PLAN(TRBATCH) PARMS('JU-
  LIAN')
  END
/*

Output2:
RUN PROGRAM(MARSO002) PLAN(TRBATCH) PARMS('JU  LIAN')

** MARSO002 ** INVALID PARM=JU  LIAN

Much better, but not yet. Need only to try now:
Code:
Input3:
//SYSTSIN  DD *
  DSN SYSTEM(DB2T)
  RUN PROGRAM(MARSO002) PLAN(TRBATCH) PARMS('JU-
LIAN')
  END
/*

Output3:
RUN PROGRAM(MARSO002) PLAN(TRBATCH) PARMS('JULIAN')

INPUT DATE.....: 1060517   
OUTPUT DATE....: 0002006137

It worked!
Now it's your turn to collect the rules for continuation of PARMS line...
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts Repeat a DD line- comment and insert ... CA Products 3
Search our Forums:

Back to Top