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

Can generation data sets be different lengths


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Wed Dec 15, 2004 7:44 pm
Reply with quote

1. can generation data sets be different lengths

2. a job executes for 10 hours,how to make it to execute in 7 hours(other than class parameter)

3.my jcl is in jcllib & proc in proclib,my job executes fine when i run today but when i run the same job after 2 days i am getting proc not found error
,i didn't make any changes anywhere

4.in proc i am using the symbolic parameters,in my job i use different ,will the sysmbolic parameter gets overwrite

5.i am a data set with 900 records,create 3 output's files with 300 records each
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Dec 16, 2004 8:18 am
Reply with quote

Please post these kinds of requests in the INTERVIEW QUESTIONS SECTION of the Forum Index further down on the page.
Back to top
View user's profile Send private message
tekq

New User


Joined: 15 Feb 2005
Posts: 2

PostPosted: Tue Feb 15, 2005 12:37 pm
Reply with quote

i have a data set with 900 records,i want to create 3 output's files with 300 records each,what is the syntax
Back to top
View user's profile Send private message
tekq

New User


Joined: 15 Feb 2005
Posts: 2

PostPosted: Tue Feb 15, 2005 12:38 pm
Reply with quote

my jcl is in jcllib & proc in proclib,my job executes fine when i run today but when i run the same job after 2 days i am getting proc not found error
,i didn't make any changes anywhere
Back to top
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Thu Feb 17, 2005 10:14 pm
Reply with quote

hi,

for spliting a file in to 3 o/p files u sort utility with OUTFIL

//SYSIN DD *

SORT FIELDS=COPY,SPLIT BY=300
OUTFILFNAMES=(FILE1,FILE2,FILE3)
/*
//

one thing is i am not sure about the split by syntax plz check it out ok

regards.
siva pradeep
Back to top
View user's profile Send private message
viveksurya

New User


Joined: 08 Jun 2009
Posts: 36
Location: Bangalore

PostPosted: Thu Aug 20, 2009 5:22 pm
Reply with quote

1. yes
2. You can also change the priority
4. yes
5. splitting files: Use SORT utility

//SORTIN DSN=INPUT,DISP=SHR - has 900 records
//SORTOF1 DSN=...... Output-1
//SORTOF2 DSN=...... Output-2
//SORTOF3 DSN=...... Output-3
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=1,STOPSFT=300
OUTFIL FILES=2,STOPSFT=300
OUTFIL FILES=3,STOPSFT=300
//*
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 20, 2009 5:28 pm
Reply with quote

viveksurya, this came up
Quote:
PostPosted: Wed Dec 15, 2004 10:14 am
I suspect the questions may have been answered already.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Aug 20, 2009 5:33 pm
Reply with quote

Quote:
OUTFIL FILES=1,STOPSFT=300
OUTFIL FILES=2,STOPSFT=300
OUTFIL FILES=3,STOPSFT=300

An incorrect solution to a 4-yr-old topic. icon_rolleyes.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 20, 2009 6:25 pm
Reply with quote

arcvns wrote:
An incorrect solution to a 4-yr-old topic. icon_rolleyes.gif
Hopefully OP is already through the interview and 4-years experienced by now... icon_biggrin.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Aug 20, 2009 8:06 pm
Reply with quote

Quote:
[humor on]
2. Cancel the job before 7 hours has elapsed.
[/humor off]
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 20, 2009 8:09 pm
Reply with quote

Quote:
3.my jcl is in jcllib & proc in proclib,my job executes fine when i run today but when i run the same job after 2 days i am getting proc not found error
,i didn't make any changes anywhere

Yeah, that's what they all say.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top