MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

question about passing data from parm='' in jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Mon Mar 20, 2006 2:45 am    Post subject: question about passing data from parm='' in jcl Reply with quote

Hi all,


There is a complicate problem for me .
When I pass data from
Code:
  parm='123456789'

The program receive data as string(123456789) without the '

Code:
//COBOL  EXEC PGM=IGYCRCTL,REGION=2048K,
//       PARM=('OBJECT,OFFSET,NODECK,LIB',                             
//            'XREF,APOST,MAP')


The parm wrote like this PARM=('OBJECT,OFFSET,NODECK,LIB',
// 'XREF,APOST,MAP')
the pgm treat bracket as '?
Is it same as the code:

Code:
//COBOL  EXEC PGM=IGYCRCTL,REGION=2048K,
//       PARM=('OBJECT,OFFSET,NODECK,LIB, XREF,APOST,MAP')


or

Code:
//COBOL  EXEC PGM=IGYCRCTL,REGION=2048K,
//       PARM='OBJECT,OFFSET,NODECK,LIB, XREF,APOST,MAP'



So if I wrote
Code:
linkage section
aaa-lenth  s9(4) comp
aaa-data   x(100)


in above 3 conditions ,will the data received in aaa-data be the same?

[/code]
Back to top
View user's profile Send private message Send e-mail MSN Messenger
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Mon Mar 20, 2006 4:46 am    Post subject: Reply with quote

pLs delete this post I should test and find answer first,sorry.I've found the answer.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Mar 20, 2006 9:01 am    Post subject: Reply with quote

Not a problem but it is a good question so for future reference. what was the answer?
Back to top
View user's profile Send private message Visit poster's website
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Mar 23, 2006 4:56 am    Post subject: Reply with quote

1)parm=('aaa','bbb')
pgm receive:aaa,bbb
2)If parm too long to have 2 lines,the fist line end at col80,the second line should begin after the column 16,if before 16 col,it generates jcl error.I'm don't know why,maybe it's a rule.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu Mar 23, 2006 6:20 am    Post subject: Reply with quote

Quote:

If parm too long to have 2 lines,the fist line end at col80,the second line should begin after the column 16,if before 16 col,it generates jcl error.I'm don't know why,maybe it's a rule.

issac1029,

You need to understand the rules of Continuing JCL Statements more clearly. Check this link which explains in detail about it

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/3.4.1?SHELF=&DT=20030423085347&CASE=

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group