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 

how to declare with initialised values to strings in arrays.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Thu Feb 23, 2006 11:55 am    Post subject: how to declare with initialised values to strings in arrays. Reply with quote

hi,

i have a condition in which i want to pass a parameter in loop to another program.the parameters are constants.

i.e like 'HAI', 'HOW'. if i can initialise them like that in workin storage itself, other than movin the values in the perform loop seperatel and passing. it will be easy for processing.

is there any way to do that

i mean like

there is an array ws-array occurs 10 times.

ws-array(1) pic x(03) value 'HAI'.
ws-array(2) pic x(03) calue 'HOW'.

is there any method to implement this since the above mentioined method is giving me compilation error.

please let me know if more details if needed.

thanks

Haseen
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Feb 23, 2006 12:23 pm    Post subject: Reply with quote

haseen_mohammed,

Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=4327&highlight=array

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
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Fri Feb 24, 2006 1:46 am    Post subject: Reply with quote

hi,

thanks for the help. it is working and i am able to process it easily.

then again this is related to submitting emailing jcl from program, but i am facing a strange problem.

the jcl i am using is

//TTOI9911 JOB 0,CLASS=I,MSGCLASS=0,NOTIFY=&SYSUID,USER=&SYSUID,
// SCHENV=SAS
//*
//PARALL EXEC SAS,WORK='5000,2000',
// CONFIG='PREV.PEV1.DATA(SASEMAIL)'
//SYSIN DD *
FILENAME MYMAIL EMAIL 'XXXXX@YYY.COM'
SUBJECT='HAI'
;
DATA _NULL_;
FILE MYMAIL;
PUT 'JUST TESTING';
RUN;
/*
//

and
/*EOF for spooling it .

i have declared them in working storage like the method suggested and passed to the spooling cics command.
the cics calls to spool the line are coming out with respcode 0.
but only till
//SYSIN DD *
is gettin written to spool with error message

EXPECTED CONTINUATION NOT RECEIVED

this jcl when submitted directly is working fine and i am gettin email.

can u help on this ..

thanks a lot again ..

haseen.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware 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